Closed tikuma-lsuhsc closed 2 years ago
Hello! Thanks for this :) this extension is hardly a complete work, so there's tons of room for improvement. I like both of your suggestions! I'm not sure I have the time to implement it right now but if you feel like doing a PR, I'd be more than happy to look, and if not I could look to get around to it some time soon.
Glad you like these ideas! I don't know much about sphinx extensions atm but I'll look into it and see if I can cook something up.
Just found this extension, and I really like the
:context:
option.Trying this extension for a bit, I have a couple features that would enhance its output IMHO.
:intertext:
option (similar to\intertext
LaTeX math command) to insert a (paragraph) text between 2 blocks.For example
to expand to rst code:
:repl:
option Run the code as if running it in the interpreterThis option enables formatting the code lines as a
doctest_block
. If a line is free of any assignment operator, print the output of__repl__()
of the line output.Using the same example from above,
produces
What do you think?