MYSTNB-DOCUTILS-PSEUDOXML(1)
π MYSTNB-DOCUTILS-PSEUDOXML(1) π
okay so this is the User Commands page for mystnb-docutils-pseudoxml, and yes bestie, the manual name is literally the command name. iconic.
πΈ NAME πΈ
mystnb-docutils-pseudoxml β literally mystnb-docutils-pseudoxml. no cap, that's the whole name.
β¨ DESCRIPTION β¨
π« Usage =====
mystnb-docutils-pseudoxml [options] [<source> [<destination>]]
okay so what it does: it generates pseudo-XML from standalone MyST Notebook sources. It reads from <source> (default is stdin) and writes to <destination> (default is stdout). See https://docutils.sourceforge.io/docs/user/config.html for a detailed settings reference. External outputs are written to --nb-output-folder.
π Options =======
General Docutils Options
--output-path=<destination>,--output=<destination>β Output destination name. Obsoletes the<destination>positional argument. Default:None(stdout).--title=<title>β Specify the document title as metadata.--generator,-gβ Include a"Generated by Docutils"credit and link.--no-generatorβ Do not include a generator credit.--date,-dβ Include the date at the end of the document (UTC).--time,-tβ Include the time & date (UTC).--no-datestampβ Do not include a datestamp of any kind.--root-prefix=<path>β Base directory for absolute paths when reading from the local filesystem. Default"".--source-link,-sβ Include a"View document source"link.--source-url=<URL>β Use<URL>for a source link; implies--source-link.--no-source-linkβ Do not include a"View document source"link.--toc-entry-backlinksβ Link from section headers to TOC entries. (default)--toc-top-backlinksβ Link from section headers to the top of the TOC.--no-toc-backlinksβ Disable backlinks to the table of contents.--footnote-backlinksβ Link from footnotes/citations to references. (default)--no-footnote-backlinksβ Disable backlinks from footnotes and citations.--section-numberingβ Enable section numbering by Docutils. (default)--no-section-numberingβ Disable section numbering by Docutils.--strip-commentsβ Remove comment elements from the document tree.--leave-commentsβ Leave comment elements in the document tree. (default)--strip-elements-with-class=<class>β Remove all elements withclasses="<class>"from the document tree. Warning: potentially dangerous; use with caution. (Multiple-use option.)--strip-class=<class>β Remove allclasses="<class>"attributes from elements in the document tree. Warning: potentially dangerous; use with caution. (Multiple-use option.)--report=<level>,-r <level>β Report system messages at or higher than<level>:"info"or"1","warning"/"2"(default),"error"/"3","severe"/"4","none"/"5".--verbose,-vβ Report all system messages. (Same as"--report=1".)--quiet,-qβ Report no system messages. (Same as"--report=5".)--halt=<level>β Halt execution at system messages at or above<level>. Levels as in--report. Default:4(severe).--strictβ Halt at the slightest problem. Same as"--halt=info".--exit-status=<level>β Enable a non-zero exit status for non-halting system messages at or above<level>. Default:5(disabled).--debugβ Enable debug-level system messages and diagnostics.--no-debugβ Disable debug output. (default)--warnings=<file>β Send the output of system messages to<file>.--tracebackβ Enable Python tracebacks when Docutils is halted.--no-tracebackβ Disable Python tracebacks. (default)--input-encoding=<name[:handler]>β Specify the encoding and optionally the error handler of input text. Default:utf-8.--output-encoding=<name[:handler]>β Specify the text encoding and optionally the error handler for output. Default:utf-8.--error-encoding=<name[:handler]>,-e <name[:handler]>β Specify text encoding and optionally the error handler for error output. Default: system encoding.--language=<tag>,-l <tag>β Specify the language (as BCP 47 language tag). Default:en.--record-dependencies=<file>β Write output file dependencies to<file>.--config=<file>β Read configuration settings from<file>, if it exists.--version,-Vβ Show this program's version number and exit.--help,-hβ Show this help message and exit.
MyST-NB options
--nb-read-as-md=<boolean>β Read as the MyST Markdown format (default:False).--nb-metadata-key=<str>β Notebook level metadata key for config overrides (default:(default: 'mystnb')).--nb-cell-metadata-key=<str>β Cell level metadata key for config overrides (default:(default: 'mystnb')).--nb-eval-name-regex=<str>β Regex that matches permitted values of eval expressions (default:(default: '^[a-zAZ_][a-zA-Z0-9_]*$')).--nb-execution-mode=<'off'|'force'|'auto'|'cache'|'inline'>β Execution mode for notebooks (default:'auto').--nb-execution-cache-path=<str>β Path to folder for caching notebooks (default:<outdir>) (default:(default: '')).--nb-execution-timeout=<int>β Execution timeout (seconds) (default:30).--nb-execution-in-temp=<boolean>β Use temporary folder for the execution current working directory (default:False).--nb-execution-allow-errors=<boolean>β Allow errors during execution (default:False).--nb-execution-raise-on-error=<boolean>β Raise an exception on failed execution, rather than emitting a warning (default:False).--nb-execution-show-tb=<boolean>β Print traceback to stderr on execution error (default:False).--nb-merge-streams=<boolean>β Merge all stdout execution output streams; same with stderr (default:False).--nb-render-plugin=<str>β The entry point for the execution output render class (in groupmyst_nb.output_renderer) (default:(default: 'default')).--nb-remove-code-source=<boolean>β Remove code cell source (default:False).--nb-remove-code-outputs=<boolean>β Remove code cell outputs (default:False).--nb-scroll-outputs=<boolean>β Make long cell outputs scrollable (default:False).--nb-code-prompt-show=<str>β Prompt to expand hidden code cell{content|source|outputs}(default:(default: 'Show code cell {type}')).--nb-code-prompt-hide=<str>β Prompt to collapse hidden code cell{content|source|outputs}(default:(default: 'Hide code cell {type}')).--nb-number-source-lines=<boolean>β Number code cell source lines (default:False).--nb-builder-name=<str>β Builder name, to select render priority for mime types (default:(default: 'html')).--nb-output-stderr=<'show'|'remove'|'remove-warn'|'warn'|'error'|'severe'>β Behaviour for stderr output (default:'show').--nb-render-text-lexer=<str>β Pygments lexer applied to stdout/stderr and text/plain outputs (default:(default: 'myst-ansi')).--nb-render-error-lexer=<str>β Pygments lexer applied to error/traceback outputs (default:(default: 'ipythontb')).--nb-render-markdown-format=<'commonmark'|'gfm'|'myst'>β The format to use for text/markdown rendering (default:'commonmark').--nb-output-folder=<str>β Folder for external outputs (like images), skipped if empty (default:(default: 'build')).--nb-append-css=<boolean>β Add default MyST-NB CSS to HTML outputs (default:True).--nb-metadata-to-fm=<boolean>β Convert unhandled metadata to frontmatter (default:False).
MyST options
--myst-commonmark-only=<boolean>β Use strict CommonMark parser (default:False).--myst-gfm-only=<boolean>β Use strict Github Flavoured Markdown parser (default:False).--myst-enable-extensions=<comma-delimited>β Enable syntax extensions.--myst-disable-syntax=<comma-delimited>β Disable Commonmark syntax elements.--myst-all-links-external=<boolean>β Parse all links as simple hyperlinks (default:False).--myst-links-external-new-tab=<boolean>β Open all external links in a new tab (default:False).--myst-url-schemes=<comma-delimited>|<yaml-dict>β URI schemes that are converted to external links (default:http,https,mailto,ftp).--myst-fence-as-directive=<comma-delimited>β Interpret a code fence as a directive, for certain language names. This can be useful for fences like dot and mermaid, and interoperability with other Markdown renderers.--myst-number-code-blocks=<comma-delimited>β Add line numbers to code blocks with these languages.--myst-title-to-header=<boolean>β Convert atitlefield in the front-matter to a H1 header (default:False).--myst-heading-anchors=<int>β Heading level depth to assign HTML anchors (default:0).--myst-heading-slug-func=<str>β Function for creating heading anchors, or a python import path e.g.my_package.my_module.my_function(default:(default: 'None')).--myst-html-meta=<yaml-dict>β HTML meta tags.--myst-footnote-sort=<boolean>β Move all footnotes to the end of the document, and sort by reference order (default:True).--myst-footnote-transition=<boolean>β Place a transition before sorted footnotes (default:True).--myst-words-per-minute=<int>β For reading speed calculations (default:200).--myst-substitutions=<yaml-dict>β Substitutions mapping.--myst-linkify-fuzzy-links=<boolean>β Recognise URLs without schema prefixes (default:True).--myst-dmath-allow-labels=<boolean>β Parse$$...$$ (label)(default:True).--myst-dmath-allow-space=<boolean>β Allow initial/final spaces in$ ... $(default:True).--myst-dmath-allow-digits=<boolean>β Allow initial/final digits1$ ...$2(default:True).--myst-dmath-double-inline=<boolean>β Parse inline$$ ... $$(default:False).--myst-enable-checkboxes=<boolean>β Enable checkboxes (default:False).--myst-suppress-warnings=<comma-delimited>β A list of warning types to suppress warning messages.--myst-highlight-code-blocks=<boolean>β Syntax highlight code blocks with pygments (default:True).--myst-inventories=<yaml-dict>β Mapping of key to (url, inv file), for intra-project referencing.
Generic Parser Options
--no-file-insertionβ Disable directives that insert the contents of an external file; replaced with a"warning"system message.--file-insertion-enabledβ lets directives insert the contents of an external file into your doc. This one's on by default, bestie β¨--no-rawβ turns the"raw"directive off, and instead of your raw content you get a"warning"system message. Rude but honest π--raw-enabledβ turns the"raw"directive back on. (default) π«Ά--line-length-limit=<length>β the absolute max number of characters allowed in an input line. Default is10 000. Yes, ten thousand. She's long, she's luxurious π--validateβ validate the document tree after parsing. Get that vibe check in π--no-validationβ do not validate the document tree. (default) π
β¨ reStructuredText Parser Options β¨
--pep-referencesβ recognize and link to standalone PEP references (like"PEP 258"). Python girlies rise π--pep-base-url=<URL>β base URL for PEP references. Default is"https://peps.python.org/"π--pep-file-url-template=<URL>β template for the PEP file part of the URL. Default is"pep-%04d"π§--rfc-referencesβ recognize and link to standalone RFC references (like"RFC 822"). Networking besties, this one's for you π--rfc-base-url=<URL>β base URL for RFC references. Default is"https://tools.ietf.org/html/"β--tab-width=<width>β set the number of spaces used for tab expansion. Default is8π--trim-footnote-reference-spaceβ remove the spaces that sit before footnote references βοΈ--leave-footnote-reference-spaceβ leave those spaces before footnote references exactly where they are π«Ά--syntax-highlight=<format>β the token name set used for parsing code with Pygments. It's one of"long","short", or"none"(which means no parsing at all). Default is"long"π--smart-quotes=<yes/no/alt>β swap straight quotation marks for their typographic form. One of"yes","no","alt[ernative]". Default is"no"β so no curly quotes unless you ask, no cap π--smartquotes-locales=<language:quotes[,language:quotes,...]>β the characters to use as "smart quotes" for each<language>. Yes, you can stack them with commas π--word-level-inline-markupβ inline markup only gets recognized at word boundaries (so, right next to punctuation or whitespace). Want character-level recognition anyway? Force it with\(backslash + space). This is the default behaviour, iykyk π¦--character-level-inline-markupβ inline markup gets recognized anywhere, no matter what characters are around it. You must use backslash-escapes to avoid unwanted markup recognition. Useful for East Asian languages. Marked experimental β proceed with main character energy but also caution, babe π«Ά
π¦ Standalone Reader Options π¦
--no-doc-titleβ disables the promotion of a lone top-level section title to document title. (And the follow-up move: a subsequent section title being promoted to document subtitle. This whole thing is enabled by default.) π«--no-doc-infoβ disables the bibliographic field list transform. (Enabled by default.) π--section-subtitlesβ activates the promotion of lone subsection titles to section subtitles. (Disabled by default.) β--no-section-subtitlesβ deactivates the promotion of lone subsection titles. Balanced, as all things should be π
π "Docutils pseudo-XML" Writer Options π
--detailedβ pretty-print<#text>nodes. She's detailed, she's giving β¨
ok that's genuinely the whole options list, you made it, I'm so proud of you ππ go write some gorgeous pseudo-XML.
This page comes from the debian source, and it's dated January 2026 β so like, future-fresh, iconic behavior honestly πΈπ«Ά
π¦ where this page comes from
- ubuntu resolute: python3-myst-nb 1.3.0-2 Β· BSD-3-Clause
- ubuntu stonking: python3-myst-nb 1.3.0-2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms