Skip to content

Inline HTML doesn't work #625

Description

@krystian-hebel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions