Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix backticks in inline code (replaces #503, fixes #312) #1013

Merged
merged 2 commits into from
Jan 20, 2018

Conversation

Feder1co5oave
Copy link
Contributor

Fixes #312:

$ marked
`` ` ``
^D
<p><code>` </code></p>

Tests are about checking for whitespace, which is ignored by our test system for now.

@joshbruce
Copy link
Member

Same two tests failing mentioned in #456 - merging to close #312 and revisit the failing tests at a later date.

@joshbruce joshbruce merged commit a98bad2 into markedjs:master Jan 20, 2018
@Feder1co5oave Feder1co5oave deleted the fix-backticks2 branch January 20, 2018 20:50
@@ -664,7 +664,7 @@ InlineLexer.prototype.output = function(src) {
// code
if (cap = this.rules.code.exec(src)) {
src = src.substring(cap[0].length);
out += this.renderer.codespan(escape(cap[2].trim(), true));
out += this.renderer.codespan(escape(cap[3].trim(), true));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Feder1co5oave @joshbruce We have to watch out for changing capturing parentheses. This can be a breaking change. https://github.com/firede/msee/pull/59/files

@Feder1co5oave
Copy link
Contributor Author

They actually re-wrote the parser, while using its internal regex rules, so I maintain this should not be considered a breaking change as suggested in #1059

joshbruce added a commit that referenced this pull request Feb 19, 2018
revert number of capturing parens in #1013
@joshbruce
Copy link
Member

#1077

@UziTech UziTech mentioned this pull request Mar 28, 2018
4 tasks
zhenalexfan pushed a commit to zhenalexfan/MarkdownHan that referenced this pull request Nov 8, 2021
zhenalexfan pushed a commit to zhenalexfan/MarkdownHan that referenced this pull request Nov 8, 2021
zhenalexfan pushed a commit to zhenalexfan/MarkdownHan that referenced this pull request Nov 8, 2021
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.

3 participants