-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Will be intact in this case #942
Comments
Are those backticks for defining the string literal? |
Is the backticks means the `? Yes, It's the ES6 template string. |
I could be wrong as I'm not that intimately familiar with Marked's codebase, but I'm pretty sure Marked, as it stands, does not handle ES6 template strings. Marked uses regular expressions and I'm not sure if the ES6 template string is interpreted by the renderer/regular expression the same way as a pure string literal. Given some other tickets I've seen, I'm also not sure how much of it is the template string literal versus the inclusion of the HTML tags (think there's a flag to allow HTML tags). Please try following (this should help to inform whether this is a new feature request, or a defect): // pure string literal
var mdSource ='
<div></div><p></p>
# title
text
<div></div>
';
// remove HTML tags w/ ES6 template string
var mdSource =`# title
text`;
// remove HTML tags w/ pure string literal
// remove HTML tags w/ ES6 template string
var mdSource ='
# title
text'; |
The text was updated successfully, but these errors were encountered: