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
The parser seems to have a problem with HTML entity detection / handling. Example:
$environment = \League\CommonMark\Environment::createCommonMarkEnvironment();
$parser = new \League\CommonMark\DocParser($environment);
$renderer = new \League\CommonMark\HtmlRenderer($environment);
echo$renderer->renderBlock($parser->parse(
"If you want to write about 'AT&T', you need to write '`AT&T`'."
));
results in
<p>If you want to write about 'AT&T`'.</p>
Half of the sentence is swallowed, probably due to the parser interpreting the first &T as the start of an (invalid) HTML entity I guess‽
The text was updated successfully, but these errors were encountered:
This is likely a duplicate of #192. Basically the EntityParser would "eat" everything between the first & and the last HTML entity.
Version 0.12 contains a fix for this issue, so please upgrade to this version. (This Babelmark 2 test shows that 0.12 behaves as expected given your input).
The parser seems to have a problem with HTML entity detection / handling. Example:
results in
Half of the sentence is swallowed, probably due to the parser interpreting the first
&T
as the start of an (invalid) HTML entity I guess‽The text was updated successfully, but these errors were encountered: