-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Markdown that's passed as inner text to new link/image template hooks not rendering #6629
Comments
OK, I have a working solution for this. I will discuss this with the Goldmark author to maybe get a cleaner solution in the API for the long term. One question: Since you can create hook templates per output format, I suggest that we keep the "plain text" as a separate attribute: So:
Sounds good? |
The context now have two text methods: * Text - rendered * PlainText Fixes gohugoio#6629
The context now have two text methods: * Text - rendered * PlainText Fixes #6629
@bep looking great, thanks! :) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
re: #6545 (comment)
I'm playing with the (awesome) new template hooks introduced in #6614 and #6545. I have links where the inner text includes code styling (via markdown, single tildes) but
.Text
inrender-link.html
returns plaintext like so:...returns
<a href....>should be code</a>
instead of<a href....><code>should be code</code></a>
as v0.61.0 does.Same with bold text (
[**bold text**](https://gohugo.io)
) and other markdown styling. I've tried{{ .Text | markdownify }}
as well with the same result.The text was updated successfully, but these errors were encountered: