-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
reStructuredText uses long token names for syntax highlighting #5349
Comments
Signed-off-by: Stephen Finucane <[email protected]> Closes: gohugoio#5349
Signed-off-by: Stephen Finucane <[email protected]> Closes: gohugoio#5349
Signed-off-by: Stephen Finucane <[email protected]> Closes: gohugoio#5349
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 is a bug. Without this fix, we do not have syntax highlighting when using rST resources. |
Signed-off-by: Stephen Finucane <[email protected]> Closes: gohugoio#5349
…ghlighting * As noted in gohugoio#7759, rst2html exports math using the "HTML math.css" formatter by default. This means that any math typeset in reStructuredText is not formatted using MathJax which is not ideal. This commit adds a --math-output parameter configure rst2html to output math ready for MathJax to process. Note that I had to pick a URL for MathJax, but it doesn't end up in the resulting output because the <script> tag is in the header which gets cut out by code further down. * As noted in gohugoio#5349, rst2html can generate HTML with short or long form class names for syntax highlighting. Pygments (via the pygmentize command) seems to generate short form by default without any way to switch this. This means most/any stylesheets for code provided with various themes won't work when using rST output. This can easily be fixed by providing the --syntax-highlight=short flag to rst2html. Fixes: gohugoio#5349 Fixes: gohugoio#7759
…ghlighting * As noted in gohugoio#7759, rst2html exports math using the "HTML math.css" formatter by default. This means that any math typeset in reStructuredText is not formatted using MathJax which is not ideal. This commit adds a --math-output parameter configure rst2html to output math ready for MathJax to process. Note that I had to pick a URL for MathJax, but it doesn't end up in the resulting output because the <script> tag is in the header which gets cut out by code further down. * As noted in gohugoio#5349, rst2html can generate HTML with short or long form class names for syntax highlighting. Pygments (via the pygmentize command) seems to generate short form by default without any way to switch this. This means most/any stylesheets for code provided with various themes won't work when using rST output. This can easily be fixed by providing the --syntax-highlight=short flag to rst2html. Fixes: gohugoio#5349 Fixes: gohugoio#7759
…ghlighting * As noted in gohugoio#7759, rst2html exports math using the "HTML math.css" formatter by default. This means that any math typeset in reStructuredText is not formatted using MathJax which is not ideal. This commit adds a --math-output parameter configure rst2html to output math ready for MathJax to process. Note that I had to pick a URL for MathJax, but it doesn't end up in the resulting output because the <script> tag is in the header which gets cut out by code further down. * As noted in gohugoio#5349, rst2html can generate HTML with short or long form class names for syntax highlighting. Pygments (via the pygmentize command) seems to generate short form by default without any way to switch this. This means most/any stylesheets for code provided with various themes won't work when using rST output. This can easily be fixed by providing the --syntax-highlight=short flag to rst2html. Fixes: gohugoio#5349 Fixes: gohugoio#7759
…ghlighting * As noted in gohugoio#7759, rst2html exports math using the "HTML math.css" formatter by default. This means that any math typeset in reStructuredText is not formatted using MathJax which is not ideal. This commit adds a --math-output parameter configure rst2html to output math ready for MathJax to process. Note that I had to pick a URL for MathJax, but it doesn't end up in the resulting output because the <script> tag is in the header which gets cut out by code further down. * As noted in gohugoio#5349, rst2html can generate HTML with short or long form class names for syntax highlighting. Pygments (via the pygmentize command) seems to generate short form by default without any way to switch this. This means most/any stylesheets for code provided with various themes won't work when using rST output. This can easily be fixed by providing the --syntax-highlight=short flag to rst2html. Fixes: gohugoio#5349 Fixes: gohugoio#7759
…ghlighting * As noted in gohugoio#7759, rst2html exports math using the "HTML math.css" formatter by default. This means that any math typeset in reStructuredText is not formatted using MathJax which is not ideal. This commit adds a --math-output parameter configure rst2html to output math ready for MathJax to process. Note that I had to pick a URL for MathJax, but it doesn't end up in the resulting output because the <script> tag is in the header which gets cut out by code further down. * As noted in gohugoio#5349, rst2html can generate HTML with short or long form class names for syntax highlighting. Pygments (via the pygmentize command) seems to generate short form by default without any way to switch this. This means most/any stylesheets for code provided with various themes won't work when using rST output. This can easily be fixed by providing the --syntax-highlight=short flag to rst2html. Fixes: gohugoio#5349 Fixes: gohugoio#7759
…ghlighting * As noted in gohugoio#7759, rst2html exports math using the "HTML math.css" formatter by default. This means that any math typeset in reStructuredText is not formatted using MathJax which is not ideal. This commit adds a --math-output parameter configure rst2html to output math ready for MathJax to process. Note that I had to pick a URL for MathJax, but it doesn't end up in the resulting output because the <script> tag is in the header which gets cut out by code further down. * As noted in gohugoio#5349, rst2html can generate HTML with short or long form class names for syntax highlighting. Pygments (via the pygmentize command) seems to generate short form by default without any way to switch this. This means most/any stylesheets for code provided with various themes won't work when using rST output. This can easily be fixed by providing the --syntax-highlight=short flag to rst2html. Fixes: gohugoio#5349 Fixes: gohugoio#7759 Co-authored by: Stephen Finucane <[email protected]> Signed-off-by: Sumner Evans <[email protected]>
…ghlighting * As noted in gohugoio#7759, rst2html exports math using the "HTML math.css" formatter by default. This means that any math typeset in reStructuredText is not formatted using MathJax which is not ideal. This commit adds a --math-output parameter configure rst2html to output math ready for MathJax to process. Note that I had to pick a URL for MathJax, but it doesn't end up in the resulting output because the <script> tag is in the header which gets cut out by code further down. * As noted in gohugoio#5349, rst2html can generate HTML with short or long form class names for syntax highlighting. Pygments (via the pygmentize command) seems to generate short form by default without any way to switch this. This means most/any stylesheets for code provided with various themes won't work when using rST output. This can easily be fixed by providing the --syntax-highlight=short flag to rst2html. Fixes: gohugoio#5349 Fixes: gohugoio#7759 Co-authored by: Stephen Finucane <[email protected]> Signed-off-by: Sumner Evans <[email protected]>
…ghlighting * As noted in gohugoio#7759, rst2html exports math using the "HTML math.css" formatter by default. This means that any math typeset in reStructuredText is not formatted using MathJax which is not ideal. This commit adds a --math-output parameter configure rst2html to output math ready for MathJax to process. Note that I had to pick a URL for MathJax, but it doesn't end up in the resulting output because the <script> tag is in the header which gets cut out by code further down. * As noted in gohugoio#5349, rst2html can generate HTML with short or long form class names for syntax highlighting. Pygments (via the pygmentize command) seems to generate short form by default without any way to switch this. This means most/any stylesheets for code provided with various themes won't work when using rST output. This can easily be fixed by providing the --syntax-highlight=short flag to rst2html. Fixes: gohugoio#5349 Fixes: gohugoio#7759 Co-authored-by: Stephen Finucane <[email protected]> Signed-off-by: Sumner Evans <[email protected]>
…ghlighting * As noted in gohugoio#7759, rst2html exports math using the "HTML math.css" formatter by default. This means that any math typeset in reStructuredText is not formatted using MathJax which is not ideal. This commit adds a --math-output parameter configure rst2html to output math ready for MathJax to process. Note that I had to pick a URL for MathJax, but it doesn't end up in the resulting output because the <script> tag is in the header which gets cut out by code further down. * As noted in gohugoio#5349, rst2html can generate HTML with short or long form class names for syntax highlighting. Pygments (via the pygmentize command) seems to generate short form by default without any way to switch this. This means most/any stylesheets for code provided with various themes won't work when using rST output. This can easily be fixed by providing the --syntax-highlight=short flag to rst2html. Fixes: gohugoio#5349 Fixes: gohugoio#7759 Co-authored-by: Stephen Finucane <[email protected]> Signed-off-by: Sumner Evans <[email protected]>
…ghlighting * As noted in gohugoio#7759, rst2html exports math using the "HTML math.css" formatter by default. This means that any math typeset in reStructuredText is not formatted using MathJax which is not ideal. This commit adds a --math-output parameter configure rst2html to output math ready for MathJax to process. Note that I had to pick a URL for MathJax, but it doesn't end up in the resulting output because the <script> tag is in the header which gets cut out by code further down. * As noted in gohugoio#5349, rst2html can generate HTML with short or long form class names for syntax highlighting. Pygments (via the pygmentize command) seems to generate short form by default without any way to switch this. This means most/any stylesheets for code provided with various themes won't work when using rST output. This can easily be fixed by providing the --syntax-highlight=short flag to rst2html. Fixes: gohugoio#5349 Fixes: gohugoio#7759 Co-authored-by: Stephen Finucane <[email protected]> Signed-off-by: Sumner Evans <[email protected]>
…ghlighting * As noted in gohugoio#7759, rst2html exports math using the "HTML math.css" formatter by default. This means that any math typeset in reStructuredText is not formatted using MathJax which is not ideal. This commit adds a --math-output parameter configure rst2html to output math ready for MathJax to process. Note that I had to pick a URL for MathJax, but it doesn't end up in the resulting output because the <script> tag is in the header which gets cut out by code further down. * As noted in gohugoio#5349, rst2html can generate HTML with short or long form class names for syntax highlighting. Pygments (via the pygmentize command) seems to generate short form by default without any way to switch this. This means most/any stylesheets for code provided with various themes won't work when using rST output. This can easily be fixed by providing the --syntax-highlight=short flag to rst2html. Fixes: gohugoio#5349 Fixes: gohugoio#7759 Co-authored-by: Stephen Finucane <[email protected]> Signed-off-by: Sumner Evans <[email protected]>
…ghlighting * As noted in gohugoio#7759, rst2html exports math using the "HTML math.css" formatter by default. This means that any math typeset in reStructuredText is not formatted using MathJax which is not ideal. This commit adds a --math-output parameter configure rst2html to output math ready for MathJax to process. Note that I had to pick a URL for MathJax, but it doesn't end up in the resulting output because the <script> tag is in the header which gets cut out by code further down. * As noted in gohugoio#5349, rst2html can generate HTML with short or long form class names for syntax highlighting. Pygments (via the pygmentize command) seems to generate short form by default without any way to switch this. This means most/any stylesheets for code provided with various themes won't work when using rST output. This can easily be fixed by providing the --syntax-highlight=short flag to rst2html. Fixes: gohugoio#5349 Fixes: gohugoio#7759
…ghlighting * As noted in gohugoio#7759, rst2html exports math using the "HTML math.css" formatter by default. This means that any math typeset in reStructuredText is not formatted using MathJax which is not ideal. This commit adds a --math-output parameter configure rst2html to output math ready for MathJax to process. Note that I had to pick a URL for MathJax, but it doesn't end up in the resulting output because the <script> tag is in the header which gets cut out by code further down. * As noted in gohugoio#5349, rst2html can generate HTML with short or long form class names for syntax highlighting. Pygments (via the pygmentize command) seems to generate short form by default without any way to switch this. This means most/any stylesheets for code provided with various themes won't work when using rST output. This can easily be fixed by providing the --syntax-highlight=short flag to rst2html. Fixes: gohugoio#5349 Fixes: gohugoio#7759
…ghlighting * As noted in gohugoio#7759, rst2html exports math using the "HTML math.css" formatter by default. This means that any math typeset in reStructuredText is not formatted using MathJax which is not ideal. This commit adds a --math-output parameter configure rst2html to output math ready for MathJax to process. Note that I had to pick a URL for MathJax, but it doesn't end up in the resulting output because the <script> tag is in the header which gets cut out by code further down. * As noted in gohugoio#5349, rst2html can generate HTML with short or long form class names for syntax highlighting. Pygments (via the pygmentize command) seems to generate short form by default without any way to switch this. This means most/any stylesheets for code provided with various themes won't work when using rST output. This can easily be fixed by providing the --syntax-highlight=short flag to rst2html. Fixes: gohugoio#5349 Fixes: gohugoio#7759
…ghlighting * As noted in gohugoio#7759, rst2html exports math using the "HTML math.css" formatter by default. This means that any math typeset in reStructuredText is not formatted using MathJax which is not ideal. This commit adds a --math-output parameter configure rst2html to output math ready for MathJax to process. Note that I had to pick a URL for MathJax, but it doesn't end up in the resulting output because the <script> tag is in the header which gets cut out by code further down. * As noted in gohugoio#5349, rst2html can generate HTML with short or long form class names for syntax highlighting. Pygments (via the pygmentize command) seems to generate short form by default without any way to switch this. This means most/any stylesheets for code provided with various themes won't work when using rST output. This can easily be fixed by providing the --syntax-highlight=short flag to rst2html. Fixes: gohugoio#5349 Fixes: gohugoio#7759
…ghlighting * As noted in gohugoio#7759, rst2html exports math using the "HTML math.css" formatter by default. This means that any math typeset in reStructuredText is not formatted using MathJax which is not ideal. This commit adds a --math-output parameter configure rst2html to output math ready for MathJax to process. Note that I had to pick a URL for MathJax, but it doesn't end up in the resulting output because the <script> tag is in the header which gets cut out by code further down. * As noted in gohugoio#5349, rst2html can generate HTML with short or long form class names for syntax highlighting. Pygments (via the pygmentize command) seems to generate short form by default without any way to switch this. This means most/any stylesheets for code provided with various themes won't work when using rST output. This can easily be fixed by providing the --syntax-highlight=short flag to rst2html. Fixes: gohugoio#5349 Fixes: gohugoio#7759
rst2html
can generate HTML with short or long form class names for syntax highlighting. Pygments (via thepygmentize
command) seems to generate short form by default without any way to switch this. This means most/any stylesheets for code provided with various themes won't work when using rST output. This can easily be fixed by providing the--syntax-highlight=short
flag torst2html
.The text was updated successfully, but these errors were encountered: