-
Notifications
You must be signed in to change notification settings - Fork 880
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
keep
is not working for the tag names that starts with capital letters
#396
Comments
keep
is not working with the tag names that starts with capital letterskeep
is not working for the tag names that starts with capital letters
There can be unexpected consequences of changing the behavior, so I've updated the docs for now. Regarding to your second example, the issue is that this is because |
Thanks for the tip about Thought I'll leave this code snippet here for someone looking in the future. Ckeditor5 + markdown strips out oembed tags and I wanted to preserve them. However the oembed tags are actually empty so I modified the blank rule to get it to work. function oembedRule( turndownService ) {
var originalBlankRule = turndownService.rules.blankRule.replacement;
turndownService.rules.blankRule.replacement = function( content, node ) {
if (node.nodeName == "OEMBED" || node.nodeName == "FIGURE") {
return node.outerHTML;
}
return originalBlankRule(content, node);
}
};
turndownService.use(oembedRule) Cheers |
result is :
not
however, it works fine with the
square
the following also does not work.
The text was updated successfully, but these errors were encountered: