-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
better pandoc support #8152
Comments
If better Pandoc support means that my |
Have you tried this?
|
BTW, I more wanted to use pandoc markdown with all its extensions, not just TOC... And IIUC, with pandoc one could write content for hugo in latex for example provided that the file extension is And passing extra vars... I have not read hugo source but IIUC it passes stdin to pandoc and it sets argument to
I.e. an ability to pass |
I had a look at making pandoc more configurable today, the first time I've written any go code but getting somewhere - I managed to get citeproc support working. I noticed the mathjax support doesn't seem to actually work.. Pandoc does the processing but mathjax itself isn't loaded. I'm not a TeX math user so left that as-is. |
As far as I can tell, the YAML header doesn't get passed to pandoc, is that intentional? I can add more parameters to this PR #8610 , but it would be nice to set things in the header too. |
FYI PR #7529 |
In case anyone wants citation support right now you can use blogdown which invokes pandoc in a separate pass and bypasses hugo's hardcoded pandoc rendering. |
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
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. |
Hi,
it would be nice to have better pandoc integration as I feel commonmark has limitations and pandoc markdown can do much more things. Examples:
enableTOC: false
- to pass--toc
to pandoc,preserveTOC = false
- to override pandoc TOC html code<nav id="TOC" role="doc-toc">
with hugo.TableOfContent
variable; it would be probably nice also to be able to define css selector to find pandoc TOC as one could change pandoc template.--template <file>
or--data-dir <dir>
...The text was updated successfully, but these errors were encountered: