Skip to content
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

ADD: Markdown.ToHtml from MarkdownDocument #519

Merged
merged 2 commits into from
Mar 9, 2021
Merged

ADD: Markdown.ToHtml from MarkdownDocument #519

merged 2 commits into from
Mar 9, 2021

Conversation

grishat
Copy link
Contributor

@grishat grishat commented Mar 7, 2021

Hello. In my case, I had to add additional classes in html elements. And the best way, in my opinion, was to add attributes on parsed document, and then render this one. And I added this missed method.
Code in my local project:

if (inline is LinkInline link)
{
   link.GetAttributes()
      .AddClass("mud-typography mud-link mud-primary-text mud-link-underline-hover mud-typography-body1");
}

src/Markdig/Markdown.cs Outdated Show resolved Hide resolved
@xoofx xoofx merged commit 64ebff4 into xoofx:master Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants