We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#327 added AutoLinkOptions with OpenInNewWindow. How can this be applied for all links, not just auto-links?
AutoLinkOptions
OpenInNewWindow
The text was updated successfully, but these errors were encountered:
Oh, figured it out.
var document = Markdown.Parse(markdown, pipeline); foreach (var descendant in document.Descendants()) { if (descendant is AutolinkInline || descendant is LinkInline) { descendant.GetAttributes().AddPropertyIfNotExist("target", "_blank"); } } using var writer = new StringWriter(); var renderer = new HtmlRenderer(writer); pipeline.Setup(renderer); renderer.Render(document); var html = writer.ToString();
Sorry, something went wrong.
No branches or pull requests
#327 added
AutoLinkOptions
withOpenInNewWindow
. How can this be applied for all links, not just auto-links?The text was updated successfully, but these errors were encountered: