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

Badge rendered as plain text #26

Closed
Nigh opened this issue Oct 9, 2020 · 5 comments
Closed

Badge rendered as plain text #26

Nigh opened this issue Oct 9, 2020 · 5 comments
Assignees

Comments

@Nigh
Copy link

Nigh commented Oct 9, 2020

Copied badge page content in example site to my page.

All the badge text rendered to plain text.

@vjeantet vjeantet self-assigned this Oct 9, 2020
@vjeantet
Copy link
Owner

Hello @Nigh , can you elaborate on your issue ?
can i have a copy of your content ?

@Nigh
Copy link
Author

Nigh commented Oct 29, 2020

@vjeantet I reproduced the problem by following these steps.

  1. hugo new site .
  2. copy the content of content.zip into content folder
  3. add theme = "docport" in config.toml
  4. hugo server
  5. rendered as below
    hugo_debug

@vjeantet
Copy link
Owner

found ! Add the following line in your config.toml file and it will work.

[markup.goldmark.renderer]
unsafe = true

@vjeantet
Copy link
Owner

another workaround if you don't want to use unsafe mode :

in you content, use
{{< badge >}}primary _(default)_{{< /badge >}}
instead of
{{% badge %}}primary _(default)_{{% /badge %}}

@Nigh
Copy link
Author

Nigh commented Oct 30, 2020

Solved.

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

2 participants