You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@vknabel I took a look at the documentation for marked and noticed there is a way to output inline. They provide an inline lexer for this purpose. I am including the update in your code below, perhaps you can allow an option in your pipe to allow for inline output or with a wrapping p tag.
MarkdownToHtmlPipe.prototype.transform = function (markdown, options) {
if (markdown == null)
return '';
return marked.inlineLexer(markdown, [], options);
};
Currently, when using the pipe the output HTML markup is wrapped in a
<p>
HTML paragraph.Actual Output
Imho the expected behaviour is not to add any additional HTML.
Expected Output
In my case it made the layout change since I had some span text before which is now in a paragraph and became a block element.
Input
The text was updated successfully, but these errors were encountered: