sphinx-contrib / confluencebuilder

Confluence Markup Builder Plugin for Sphinx
BSD 2-Clause "Simplified" License
315 stars 99 forks source link

Default highlighter is Python #1020

Closed tucked closed 2 months ago

tucked commented 2 months ago

https://github.com/sphinx-contrib/confluencebuilder/blob/48366e6dfcd93d80ba96b43e0fa976687805b4b0/sphinxcontrib/confluencebuilder/std/confluence.py#L408-L414

Hey there, we use this plugin alongside myst-parser to publish Markdown to Confluence. I was wondering/hoping there's a way to make a code fence with no highlighter specified correspond to {noformat} on Confluence. Is that possible?

jdknight commented 2 months ago

It is possible to configure the default highlight style using the confluence_lang_overrides configuration. For example, to change from the internal default of python to no language (e.g. none), the following can be used:

confluence_lang_overrides = {
    'default': 'none',
}
tucked commented 2 months ago

aha! That's great, thank you 👍