Skip to content

em: Allow escaped underscores in em again - #715

Closed
ariabuckles wants to merge 1 commit into
markedjs:masterfrom
ariabuckles:underscores-in-ems
Closed

ariabuckles wants to merge 1 commit into
markedjs:masterfrom
ariabuckles:underscores-in-ems

Conversation

@ariabuckles

Copy link
Copy Markdown

This was a regression in 0.3.4

See issue #641

Test plan:

In node, run

var marked = require("./lib/marked.js");
marked.parse("_ABC\\_DEF_")
> '<p><em>ABC_DEF</em></p>\n'

Previously, this would give '<p>_ABC_DEF_</p>\n'

This was a regression in 0.3.4

See issue markedjs#641

Test plan:

In node, run

```javascript
var marked = require("./lib/marked.js");
marked.parse("_ABC\\_DEF_")
> '<p><em>ABC_DEF</em></p>\n'
```

Previously, this would give '<p>_ABC_DEF_</p>\n'
@ariabuckles

Copy link
Copy Markdown
Author

Update: forgot to build the minified version, and forgot to do [\s\S] instead of _ after the backslash :/. I updated the commit.

@joshbruce

Copy link
Copy Markdown
Member

See #1010

Closing due to merge conflicts, stale, and missing tests.

@joshbruce joshbruce closed this Jan 21, 2018
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.

2 participants