-
Notifications
You must be signed in to change notification settings - Fork 985
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
Extra syntaxes not working #1723
Comments
Ah the snippet hasn't been updated, it should be |
Ah! I saw it, tried it on my website but didn't work and forgot to try it on the minimal test. So, when I tried on my website it failed again so after digging a bit I found that if I add |
Currently, init_extra_syntaxtes_and_highlight_themes will supress loading anything if highlight_theme is "css". This makes sense for the highlight themes, but will also skip loading any extra syntax definitions too. This change defers the theme = css check, so we still load syntaxes in this case. Fixes: getzola#1723 Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Currently, init_extra_syntaxtes_and_highlight_themes will supress loading anything if highlight_theme is "css". This makes sense for the highlight themes, but will also skip loading any extra syntax definitions too. This change defers the theme = css check, so we still load syntaxes in this case. Fixes: getzola#1723 Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Seeing the same issue here, and thought I'd have a go at fixing it. Let me know if you need any details. |
Currently, init_extra_syntaxtes_and_highlight_themes will supress loading anything if highlight_theme is "css". This makes sense for the highlight themes, but will also skip loading any extra syntax definitions too. This change defers the theme = css check, so we still load syntaxes in this case. Fixes: #1723 Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Currently, init_extra_syntaxtes_and_highlight_themes will supress loading anything if highlight_theme is "css". This makes sense for the highlight themes, but will also skip loading any extra syntax definitions too. This change defers the theme = css check, so we still load syntaxes in this case. Fixes: #1723 Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
extra_syntaxes_and_themes is loaded from config.toml [markdown], and used as both syntax and color theme search paths. Following the docs and trying to set the extra_syntaxes property in config.toml [markdown] does nothing, and getzola#1723 ran into this issue. Change the docs to consistently reference extra_syntaxes_and_themes.
Currently the Configuration docs says to load syntax files into config.toml [markdown] extra_syntaxes. However, ever since commit 23064f5 (released in Zola v0.15.0), the extra_syntaxes property was replaced by extra_syntaxes_and_themes, and used as both syntax and color theme search paths. Following the docs and trying to set the extra_syntaxes property does nothing, and getzola#1723 ran into this issue. Change the docs to consistently reference extra_syntaxes_and_themes.
Currently the Configuration docs says to load syntax files into config.toml [markdown] extra_syntaxes. However, ever since commit 23064f5 (released in Zola v0.15.0), the extra_syntaxes property was replaced by extra_syntaxes_and_themes, and used as both syntax and color theme search paths. Following the docs and trying to set the extra_syntaxes property does nothing, and #1723 ran into this issue. Change the docs to consistently reference extra_syntaxes_and_themes.
…zola#1732) Currently, init_extra_syntaxtes_and_highlight_themes will supress loading anything if highlight_theme is "css". This makes sense for the highlight themes, but will also skip loading any extra syntax definitions too. This change defers the theme = css check, so we still load syntaxes in this case. Fixes: getzola#1723 Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Bug Report
Environment
Zola version: 0.15.2
Expected Behavior
I would expect a
config.toml
like:to load and apply the syntaxes in the
syntaxes
folder as described in the config documentation.In case it helps:
Note that the exact code linked above works well with zola version 0.14.1.
Current Behavior
Both
zola --root website serve
andzola --root website build
work as expected except for warnings such as:With the resulting HTML not highlighting codeblocks labelled as
rfc8288
orabnf
.Step to reproduce
A simple
zola serve
on this minimal test should suffice.The text was updated successfully, but these errors were encountered: