From 38b3c054a5cb8a86348abf0d2912045932f2bfc6 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Sun, 7 Apr 2019 11:33:42 +0200 Subject: [PATCH] Clarify order of entity/numeric character references vs. delimiter runs See #474 and https://talk.commonmark.org/t/when-exactly-should-numeric-character-references-be-replaced/2121 --- spec.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/spec.txt b/spec.txt index 31e1714d..268b0472 100644 --- a/spec.txt +++ b/spec.txt @@ -5659,6 +5659,10 @@ with the following exceptions: `*` in emphasis delimiters, bullet list markers, or thematic breaks. +- Entity and numeric character references are replaced before + deciding whether a [delimiter run] can open and/or close + emphasis. + Conforming CommonMark parsers need not store information about whether a particular character was represented in the source using a Unicode character or an entity reference. @@ -5799,6 +5803,16 @@ text in code spans and code blocks: ```````````````````````````````` +Entity and numeric character references are replaced before deciding +whether a [delimiter run] can open and/or close emphasis. + +```````````````````````````````` example +i*ii*i +. +

iiii

+```````````````````````````````` + + Entity and numeric character references cannot be used in place of symbols indicating structure in CommonMark documents.