-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Notes release notes 0.100 #9934
Comments
bep
added a commit
to bep/hugo
that referenced
this issue
May 28, 2022
It has been deprecated for a long time, its v1 version is not maintained anymore, and there are many known issues. Goldmark should be a mature replacement by now. Closes gohugoio#9934
bep
added a commit
to bep/hugo
that referenced
this issue
May 28, 2022
It has been deprecated for a long time, its v1 version is not maintained anymore, and there are many known issues. Goldmark should be a mature replacement by now. Closes gohugoio#9934
bep
added a commit
that referenced
this issue
May 29, 2022
It has been deprecated for a long time, its v1 version is not maintained anymore, and there are many known issues. Goldmark should be a mature replacement by now. Closes #9934
Does it mean that it fixes #4717 as well? |
I don't know. |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
.RenderString with shortcodes
And finally, you can now use shortcodes in the strings pased to
.RenderString
See #6703 for more information.Indentation fixes for shortcode blocks
We now record the indentation before the opening shortcode tag when parsing the source. This allow us to fix a couple of annoying issues in Hugo:
.InnerIndent
method to the shortcode context to prevent thehighlight
shortcode from including in the indentation as part of the code block. See Indentedhighlight
shortcode brings in the indentation as part of the code block #4717.A shortcode block is when the shortcode is included as the first non-whitespace content on a line. Note that this does not touch shortcodes with inner content, where the user is in control of the indentation. See issue #9946 for more information. An example, say that I have this in
layouts/shortcodes/mylist.md
:And then use that shortcode in a content file:
* My List {{% mylist %}}
In earlier versions of Hugo the above would render as:
Now it renders as:
Note that in the example above we use the
md
file suffix for the shortcode. In this release we also addedMarkdown
as a built-in output format in Hugo, defined as a plain text format, meaning you get more lenient parsing compared to HTML. Using this if your shortcode produces Markdown has fewer quirks. See #9821.resources.Copy
The text was updated successfully, but these errors were encountered: