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

shortcodes: allow markdown for title and content #502

Closed
cagix opened this issue Mar 14, 2023 · 2 comments
Closed

shortcodes: allow markdown for title and content #502

cagix opened this issue Mar 14, 2023 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@cagix
Copy link

cagix commented Mar 14, 2023

Using a button shortcode with markdown content results in a correctly translated but somehow escaped format.

Example: When I use {{% button %}}Get **Hugo** {{% /button %}}, the result currently is

<span class="btn cstyle transparent">
  <button type="button">
    Get &lt;strong&gt;Hugo&lt;/strong&gt;
  </button>
</span>

Expected would be

<span class="btn cstyle transparent">
  <button type="button">
    Get <strong>Hugo</strong>
  </button>
</span>

This worked in an earlier version of Hugo Relearn theme.

Version: Hugo Relearn 5.12.2, Hugo v0.111.2

@McShelby McShelby changed the title button shortcode: wrongly escaped result when using markdown content shortcodes: allow markdown for title and content Mar 14, 2023
@McShelby McShelby self-assigned this Mar 14, 2023
@McShelby McShelby added the bug Something isn't working label Mar 14, 2023
@McShelby McShelby added this to the 5.12.3 milestone Mar 14, 2023
@McShelby
Copy link
Owner

Thankg cagix for reporting this. It's fixed in 5.12.3

@cagix
Copy link
Author

cagix commented Mar 15, 2023

thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants