Skip to content

fixed: incorrect parsing nested backtick block - #333

Closed
skywind3000 wants to merge 2 commits into
trentm:masterfrom
skywind3000:master
Closed

skywind3000 wants to merge 2 commits into
trentm:masterfrom
skywind3000:master

Conversation

@skywind3000

@skywind3000 skywind3000 commented Sep 6, 2019 •

Copy link
Copy Markdown

fix: #327

@nicholasserra

Copy link
Copy Markdown
Collaborator

Looks like a bunch of tests failing. Also missing a test for this fix. Is there any way to accomplish this by fixing the original regex? Thanks!

@skywind3000

skywind3000 commented Sep 6, 2019 •

Copy link
Copy Markdown
Author

I will try to correct the testing failure, and IMHO it is impossible to fix issue #333 by regex, regex is stateless but counting the number of starting backticks and matching the same number of backticks at the end require a stateful parsing method.

Feel free to close this if you have better solution for the nested backtick blocks, before that I will continue trying this way.

@kylepolich

Copy link
Copy Markdown

Any movement on this? We want to use markdown2 but we are relying on it parsing markdown in a manner similar to other parsers.

@nicholasserra

Copy link
Copy Markdown
Collaborator

Looks like tests still failing on it. If you have another patch for this PRs are welcome. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[critical] Code block parsing error.

3 participants