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
I am trying to convert markdown to html by it is not converting {: target="_blank"} to target="_blank" attribute in <a> tag.
text = `Sample text [my link](https://testlink.com){: target="_blank"} and more`
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, lax_spacing: true)
markdown.render(text)
and it would transform it to something like this.
Sample text <a href="https://testlink.com">my link</a>{: target="<em>blank"}, and more
Any idea how can I make the {: target="_blank"} to be transformed to anchor attribute?
Expected output:
Sample text <a href="https://testlink.com" target="_blank">my link</a>, and more
The text was updated successfully, but these errors were encountered:
I am trying to convert markdown to html by it is not converting
{: target="_blank"}
totarget="_blank"
attribute in<a>
tag.and it would transform it to something like this.
Any idea how can I make the
{: target="_blank"}
to be transformed to anchor attribute?Expected output:
The text was updated successfully, but these errors were encountered: