-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvement Proposal: Quadruple Backticks for @example Codefences in (Documenter-)Markdown #144
Comments
Makes sense, are there any downside at all of using four backticks? @mortenpi? |
I don't think so, the parser should handle it fine. Will break again if someone decides to use 4-backticks in their docstring though. That should be much more rare, but might be worth mentioning in the docs? |
I am glad, that the switch would be possible :) If the behavior is changed, it could be documented be in the section about output formats |
Do you want to make a PR to change this and add that documentation? |
Yes, I'd love to :) I will make the PR and reference this issue. |
I have just noticed something else: To overcome this, I have written a preprocessing function allowing for comments with an alternative prefix ("#~" in my case). |
I am testing Literate for writing a module where some functions have docstrings attached.
I noticed that if I am including code-examples or math in the docstrings, then the resulting Code-Blocks in markdown output get split.
Example: The Julia Code
will result in Markdown that looks something like
and
This of course can break the whole document.
A simple fix is to provide the
codefence
keyword argument toLiterate.markown
, specifying to use 4 consecutive backticks instead of 3, i.e.,I am thinking that maybe this should be the default behavior, at least for documenter output?
Anyways, thanks for the great work!
The text was updated successfully, but these errors were encountered: