-
-
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
regression: Panic when "markup.highlight.linenos" set to table or inline #9518
Comments
First, the panic is new in v0.92.2. In v0.92.1 and earlier, your configuration produced:
Second, your configuration is invalid. In site configuration [markup.highlight]
lineNos = true
lineNumbersInTable = true To enable line numbers and render them inline: [markup.highlight]
lineNos = true
lineNumbersInTable = false When using the highlight function in a template, the highlight shortcode in your markdown, or code fences in your markdown, you can use the short hand notation:
|
Bisection indicates problem was introduced with a2a660e. |
Thank you @jmooring . I think I misunderstood the document of highlight shortcode, the |
And now with a proper server test. Fixes gohugoio#9518 Fixes gohugoio#9530 Fixes gohugoio#9539
And now with a proper server test. Fixes gohugoio#9518 Fixes gohugoio#9530 Fixes gohugoio#9539
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. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
In my
config.yml
, the following config will reproduce the issue:Then run
hugo server
, got the follwing output:The text was updated successfully, but these errors were encountered: