-
-
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
Adding a render hook for blockquotes #7876
Comments
Although I had not thought of blockquotes, this reminds me of my wondering about render hooks for all sorts of tags. https://discourse.gohugo.io/t/markdown-render-hooks-for-all-the-things/28782 |
I have said this before, but: we're not adding render hooks for "all sorts of tags", including blockquotes. Adding styles to tags needs another solution. |
The cite element is not a style. It's a sub-element to demark the source of a blockquote. You closed this without reading the issue on top. There is no way to write a cite element with proper markdown and without adding HTML to the markdown. |
PS: yes I used the wrong word, tag, and created confusion sorry. 🙈 |
See #7548 |
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. |
Short version: I propose to add a render hook for blockquote markup. Current Markdown just adds a blockquote tag around it, but I would like "better quotes" in my code.
Long version:
{{< quote source="link to the source" title="title for the source link" >}}quote{{</quote>}}
will add some code with acite
element and in there a link to the source<!--lint disable write-good-->
brackets around these shortcoded quotes> the quote
) does not fail (seems like they already catch language by "others", but I can't add a link to the source.Another workaround would be:
but that introduces HTML into my markdown which I consider bad style too.
The text was updated successfully, but these errors were encountered: