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

breaking: minor: Now code fences are used even when using coderefs Hugo v0.93.0+ #577

Merged
merged 1 commit into from
Mar 1, 2022

Conversation

kaushalmodi
Copy link
Owner

Now that Hugo issue gohugoio/hugo#9385 is
fixed in Hugo
v0.93.0 (https://github.com/gohugoio/hugo/releases/tag/v0.93.0), this
workaround (of using the highlight shortcode only when coderefs were
used) is no longer needed.

This is "minor" breaking because the coderefs feature was introduced
very recently and so I doubt if anyone is still using this :D

If users want to use coderefs, they need to upgrade Hugo to v0.93.0

Documentation for coderef support: https://ox-hugo.scripter.co/doc/source-blocks/#code-references

Now that Hugo issue gohugoio/hugo#9385 is
fixed in Hugo
v0.93.0 (https://github.com/gohugoio/hugo/releases/tag/v0.93.0), this
workaround (of using the `highlight` shortcode only when coderefs were
used) is no longer needed.

This is "minor" breaking because the coderefs feature was introduced
very recently and so I doubt if anyone is still using this :D

If users want to use coderefs, they need to upgrade Hugo to v0.93.0

Documentation for coderef support: https://ox-hugo.scripter.co/doc/source-blocks/#code-references
@kaushalmodi kaushalmodi merged commit c1bcb0f into main Mar 1, 2022
@kaushalmodi kaushalmodi deleted the use-code-fences-for-coderefs branch March 1, 2022 15:46
@kaushalmodi
Copy link
Owner Author

After these commit, now we get much cleaner exports for source blocks with coderefs:

image

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

Successfully merging this pull request may close these issues.

None yet

1 participant