Replies: 4 comments 2 replies
-
Maybe a syntax to specially-mark a verbatim block to allow inline formatting --- something like:
where
and further, within that special code block:
|
Beta Was this translation helpful? Give feedback.
-
Because that makes it impossible to present code that contains literal backticks. |
Beta Was this translation helpful? Give feedback.
-
if a syntax were to be developed for this it would be nice to have it work with latex math as well! One could then more easily filter / create macros for latex that also work outside of latex! |
Beta Was this translation helpful? Give feedback.
-
I think one way to deal with it is to kick the can down the line and let the rendering process to (recursively) invoke djot on the verbatim snippet. This also scales to, eg, Though, having a programmatic API to tell djot to parse only inlines would help here! |
Beta Was this translation helpful? Give feedback.
-
First, thanks! I've been looking for something like this since I started doing serious technical writing for about 2 years.
My question is: what I currently write we use AsciiDoc, which allows us to tag inside code blocks. We teach people to use shell commands, for example, and we tag bits as user input (what you're supposed to type at a prompt), replaceable (stuff where you'll have to write something variable), highlights (to draw attention to parts of command output), etc. Stuff like this:
Is there any possibility to consider providing ways to do this?
I am looking at this project because I am yet to find a markup language that has a well-defined AST and allows doing things like this. We have esp. a hard time writing nice tooling for AsciiDoc (think integrating spell checkers, style checkers, internal lints, etc.).
Beta Was this translation helpful? Give feedback.
All reactions