-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The earlier org-hugo-pygments-code-fences boolean var is now replaced with symbol list defcustom org-hugo-langs-no-desc-in-code-fences. To get the same behavior as setting org-hugo-pygments-code-fences to t, set org-hugo-langs-no-desc-in-code-fences to '(org).
- Loading branch information
1 parent
6ea8881
commit 6f40cf9
Showing
3 changed files
with
73 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
+++ | ||
title = "Org Source Block" | ||
tags = ["src-block"] | ||
draft = false | ||
+++ | ||
|
||
Test case for the case where user has set | ||
`org-hugo-langs-no-descr-in-code-fences` to a list containing the | ||
element `org`. | ||
|
||
_As this variable is dependent on user's config, this post is not set | ||
to be exported by default._ | ||
|
||
The [issue](https://discourse.gohugo.io/t/fenced-code-block-with-language-unsupported-by-pygments/7710) with Hugo will be seen if: | ||
|
||
- `pygmentsCodeFences = true` is set in the Hugo site `config.toml`, | ||
- a source block's language is set to one that's not supported by | ||
Pygments (like [org](https://bitbucket.org/birkenfeld/pygments-main/issues/719/wishlist-support-org), and thus the below example with source code | ||
language set to `org`), and | ||
- `org-hugo-langs-no-descr-in-code-fences` is set to a value not | ||
containing that lanaguage descriptor (`org` in this case). | ||
|
||
``` | ||
# Org comment | ||
Export this post after setting | ||
=org-hugo-langs-no-descr-in-code-fences= to =(org)= and temporarily | ||
removing the =noexport= tag. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters