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

Document the differences between highlight shortcode and code fence attributes #1628

Open
kaushalmodi opened this issue Jan 16, 2022 · 0 comments

Comments

@kaushalmodi
Copy link
Contributor

kaushalmodi commented Jan 16, 2022

Hello,

Recently while trying to use the anchorlinenos attribute in code fences, I learnt that that attribute and related lineanchor are available only for the highlight shortcode and not code fences.

In an upcoming PR gohugoio/hugo#9390, the hl_style attribute for code fences will be equivalent to the style attribute of the highlight shortcode.

So I am proposing that a table be added to the highlighting section in the documentation that lists and compares the attributes/switches available for code fences vs the highlight shortcode.

@kaushalmodi kaushalmodi changed the title Document the differencea between highlight shortcode and code fence attributes Document the differences between highlight shortcode and code fence attributes Jan 16, 2022
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

1 participant