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

Inline HTML doesn't work #625

Open
krystian-hebel opened this issue Jan 21, 2025 · 0 comments
Open

Inline HTML doesn't work #625

krystian-hebel opened this issue Jan 21, 2025 · 0 comments

Comments

@krystian-hebel
Copy link
Member

krystian-hebel commented Jan 21, 2025

README states that:

You can write attach inline HTML into Markdown and it will work! <span style="color: blue">Some text</span>

However, this results in the following HTML being produced:

<p><!-- raw HTML omitted -->Some text<!-- raw HTML omitted --></p>

This is because Goldmark (default Markdown renderer used by Hugo) has raw HTML disabled by default: https://gohugo.io/getting-started/configuration-markup/#rendererunsafe. Either this option should be enabled, or information about possibility of using HTML should be removed from README.

In case of the former, CI would also have to be modified, to skip MD033/no-inline-html check.

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

No branches or pull requests

1 participant