Conversation
9b221f8 to
26c6c15
Compare
|
Can you describe more fully the motivation for the change? Are there any formats besides LaTeX for which Even for LaTeX, one might wonder about |
|
Sorry, I forgot to link to the relevant issue: #10525. The motivation is indeed to allow users to choose between Typst's native highlighter and highlighting through Skylighting. |
afc7b6b to
db45066
Compare
|
Does |
|
Oh, I forgot about that. In fact, I even forgot to update the main manual. Fixing... |
This allows to be more explicit about using a default style, and providing a single point of truth for its value. The variable is an alias for `pygments`.
db45066 to
67d6b95
Compare
MANUAL.txt
Outdated
| | --no-highlight | highlight-style: null | | ||
| | --no-highlight | syntax-highlighting: null | |
There was a problem hiding this comment.
Curious about this: does "none" work too? If not, might this be an unexpected divergence between cli and defaults file behavior?
There was a problem hiding this comment.
Oh, that was a typo; it was meant to say none. But yes, that works, too.
There was a problem hiding this comment.
'none', null, and false all turn off syntax highlighting.
The Text.Pandoc.Options module exports the `HighlightMethod` data type and it's constructors. Furthermore, three pattern synonyms are exported, `NoHighlightingString`, `DefaultHighlightingString`, and `IdiomaticHighlightingString`, which hold the string value that's used for decoding and encoding of HighlightMethod values.
67d6b95 to
68adff0
Compare
A new command line option `--syntax-highlighting` is provided; it takes the values `none`, `default`, `idiomatic`, a style name, or a path to a theme file. It replaces the `--no-highlighting`, `--highlighting-style`, and `--listings` options. The `writerListings` and `writerHighlightStyle` fields of the `WriterOptions` type are replaced with `writerHighlightStyle`. Closes: jgm#10525
68adff0 to
8ddd04f
Compare
|
Is the commit message supposed to read
? This affects the changelog as well -- took a moment for me to figure out the |
|
Yes, exactly. Sorry, my bad. |
|
Noting this here for future readers, given 6d6ab8c points here: the change to (if you're consuming a highlight style, I can't give automatic advice, as this PR has added extra constructors to |
|
Ah, and I missed the |
No description provided.