From 0e5e95eb7fcc973128d3a2a8cddf221f3825c156 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 8 Jan 2017 00:19:50 +0100 Subject: Change Rule 14 for Emphasis. Previously the nesting Strong (Emph (...)) was preferred over Emph (Strong (...)). This change makes Emph (Strong (...)) preferred. Note that the commonmark reference implementations were not entirely consistent about this rule, giving different results for ***hi*** and ***hi**** This change simplifies parsing. It goes against the majority of implementations, but only on something utterly trivial. --- spec.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec.txt b/spec.txt index c49e85b..857e92c 100644 --- a/spec.txt +++ b/spec.txt @@ -5976,8 +5976,8 @@ the following principles resolve ambiguity: an interpretation `...` is always preferred to `...`. -14. An interpretation `...` is always - preferred to `..`. +14. An interpretation `...` is always + preferred to `..`. 15. When two potential emphasis or strong emphasis spans overlap, so that the second begins before the first ends and ends after @@ -7000,14 +7000,14 @@ Rule 14: ```````````````````````````````` example ***foo*** . -

foo

+

foo

```````````````````````````````` ```````````````````````````````` example _____foo_____ . -

foo

+

foo

```````````````````````````````` -- cgit v1.2.3