lruiz/MarkdownPapers

Incorrect parsing of HTML entities representing numerical entities

brlnguy opened this issue · 0 comments

In jjtree/Markdown.jit the expression that checks for numerical references appears to be missing the '#' character that follows the ampersand character. So while this expression is searching for e.g. "&1234;", according to e.g. http://en.wikipedia.org/wiki/Numeric_character_reference it should rather look for "Ӓ". The same holds for hexadecimal numerical entities that would start with "&#x" and not just "&x" as implemented here

| < NUMERIC_CHAR_REF : "&" ( ( ["0"-"9"] ){1,4} | "x" ( ["0"-"9", "a"-"f", "A"-"F"] ){1,4} ) ";" >