Add optional math support for markdown#2708
Open
recmo wants to merge 19 commits into
Open
Conversation
a52418a to
b513f1f
Compare
Keats
requested changes
Nov 18, 2024
| /// Whether smart punctuation is enabled (changing quotes, dashes, dots etc in their typographic form) | ||
| pub smart_punctuation: bool, | ||
| /// Whether to enable latex math rendering | ||
| pub math: bool, |
Collaborator
There was a problem hiding this comment.
We want that to be an enum. Eventually (hopefully) there will be math rendering inside Zola (eg https://zola.discourse.group/t/a-simpler-katex-alternative-that-works-today/2156/3) so we will want to support classes/pre-render etc
3 tasks
Updated changelog to reflect breaking changes in version 0.22.0.
Co-authored-by: Keats <680355+Keats@users.noreply.github.com>
Signed-off-by: zyxhere💭 <zyx@envs.net>
Co-authored-by: Keats <680355+Keats@users.noreply.github.com>
…tzola#3110) * docs: Add link to TextMate themes in configuration and highlighting docs getzola#3088 * docs: revise TextMate themes link wording
I guess it was a typo.
Signed-off-by: SAY-5 <say.apm35@gmail.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
IMPORTANT: Please do not create a Pull Request adding a new feature without discussing it first.
The place to discuss new features is the forum: https://zola.discourse.group/
If you want to add a new feature, please open a thread there first in the feature requests section.
Sanity check:
Code changes
(Delete or ignore this section for documentation changes)
nextbranch?If the change is a new feature or adding to/changing an existing one:
This fixes #2019 without adding substantial complexity or dependencies. It optionally enables a common-mark extension available in
pulldown-cmark.This will correctly parse delimited math, and render html like
<span class="math math-inline">\sum_i x_i<\span>.To render the latex using Katex, include something like this in the header: