d2l-book icon indicating copy to clipboard operation
d2l-book copied to clipboard

New feaure request: Adding theorem/proof blocks.

Open RootofalleviI opened this issue 3 years ago • 1 comments

Hey D2L team,

Thanks for providing us with this great tool!

One small question or feature request: Is it possible to support the functionalities for theorems/proof blocks, e.g., something like this: https://sphinx-proof.readthedocs.io/en/latest/syntax.html? Maybe this requires defining new syntax in Markdown (e.g., custom tokens for start/end of environments) and translate that into rst.

Thanks!

RootofalleviI avatar Jun 14 '21 15:06 RootofalleviI

I tried to add this line to config.ini: sphinx_extensions = myst_parser sphinx_proof which gives me an error: Extension error: source_suffix '.md' is already registered which I believe is caused by the extension clash between recommonmark and myst_parser.

Since recommonmark is now deprecated (https://github.com/readthedocs/recommonmark), could we replace it by myst?

Thanks!

`

RootofalleviI avatar Jun 14 '21 15:06 RootofalleviI