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

Error thrown when formatting dynamic HTML tag like <h{{ .Level }}></h{{ .Level }}> #87

Open
phelipetls opened this issue May 29, 2022 · 0 comments

Comments

@phelipetls
Copy link

For example, if we try to format the "Render heading link" markdown render hook example from the documentation, the following error is thrown:

layouts/posts/_markup/render-heading.htmlFormatting failed. SyntaxError: Unexpected closing tag "h01G48S8WZ1SCCTZHN4NWSXMJ4F". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags (1:132)
> 1 | <h01G48S8WZ0FG4HN439Z2D3CW7P id="01G48S8WZ08N4WPEM4W1ZCHF1F">01G48S8WZ0N4AJPJD1NHV9MQ0Y <a href="#01G48S8WZ1QEH9R80VFNDJ4DNE">¶</a></h01G48S8WZ1SCCTZHN4NWSXMJ4F>
    |                                                                                                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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