You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is supposed to set off indented code blocks by filling the leading white space. But a textual number with no leading white space is also filled as if the digits were <pre> characters:
Text:
The number:
338269006135764734700913562171
is prime
At the start of every line,
LexMarkdown::Lex
defaults toSCE_MARKDOWN_PRECHAR
in the absence of any reserved markup token:lexilla/lexers/LexMarkdown.cxx
Lines 341 to 344 in 31a5815
This is supposed to set off indented code blocks by filling the leading white space. But a textual number with no leading white space is also filled as if the digits were
<pre>
characters:Text:
Styles:
Every digit is captured because a subsequent code path increments the style region as if the number were an ordered list item:
lexilla/lexers/LexMarkdown.cxx
Lines 380 to 384 in 31a5815
This patch adds a corrective fallback to
SCE_MARKDOWN_DEFAULT
as soon as a string of digits fails to match a list item:0001-LexMarkdown-Fix-numbers-as-pre-char.diff.txt
The text was updated successfully, but these errors were encountered: