-
-
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
Do not render hl_style as an HTML attribute #9390
Comments
From the docs, the variable for setting the style is just "style": https://gohugo.io/getting-started/configuration-markup#highlight While this is being fixed, can you also make the attribute for highlighting style consistent between highlight shortcode and code fences? |
@ While this is being fixed, can you also make the attribute for highlighting style consistent between highlight shortcode and code fences? No. First, when using code fences, the syntax is determined by yuin/goldmark-highlighting. Second, even if we were able to somehow alias the option name, using |
I meant using |
That's a separate issue, affecting the shortcode, the function, related tests, and documentation for each. If you feel strongly about it, create a new proposal. |
It's mainly to prevent user confusion. May be a table in the documentation would suffice that would compare the names and availability of various attributes for highlight shortcode vs the code fence style. |
That's a separate issue. If you feel strongly about it, please create a new proposal in the documentation repository. 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. |
The yuin/goldmark-highlighting module accepts the following attributes:
linenos
,linenostart
,hl_lines
, andhl_style
.For example:
These attributes have special meaning, and should not be rendered as HTML attributes in the wrapping element.
We already do this for
linenos
,linenostart
, andhl_lines
. We just need to addhl_style
to the list.The text was updated successfully, but these errors were encountered: