MYSTNB-DOCUTILS-HTML(1)
π MYSTNB-DOCUTILS-HTML(1) π
okay so this is the User Commands manual page for mystnb-docutils-html β yes, the page is literally titled MYSTNB-DOCUTILS-HTML(1), and the command is literally mystnb-docutils-html. bestie, we're going in. π
π NAME π
mystnb-docutils-htmlβ that's the command. That's the name. iconic. β¨
πΈ DESCRIPTION πΈ
π«Ά Usage π«Ά
mystnb-docutils-html [options] [<source> [<destination>]]
It generates (X)HTML documents from standalone MyST Notebook sources. 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. It 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; page says(default: (default: 'mystnb')).--nb-cell-metadata-key=<str>β cell level metadata key for config overrides; page says(default: (default: 'mystnb')).--nb-eval-name-regex=<str>β regex that matches permitted values of eval expressions; page says(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; page says(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); page says(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}; page says(default: (default: 'Show code cell {type}')).--nb-code-prompt-hide=<str>β prompt to collapse hidden code cell{content|source|outputs}; page says(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; page says(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; page says(default: (default: 'myst-ansi')).--nb-render-error-lexer=<str>β Pygments lexer applied to error/traceback outputs; page says(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; page says(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; page says(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β turns on those directives that pull in the contents of an external file. yep, that's the default π--no-rawβ disables therawdirective entirely, and instead of it doing its thing you get awarningsystem message instead π«Ά--raw-enabledβ enables therawdirective. (this is the default, bestie)--line-length-limit=<length>β the max number of characters allowed in a single input line. Default is10 000π--validateβ validate the document tree after parsing.--no-validationβ don't validate the document tree. (default, so if you skip this whole argument you're in no-validation land π¦)
β¨ reStructuredText Parser Options β¨
--pep-referencesβ makes it recognize and link to standalone PEP references (like"PEP 258") π₯--pep-base-url=<URL>β base URL for PEP references. Default:"https://peps.python.org/"--pep-file-url-template=<URL>β the template for the PEP file part of the URL. Default:"pep-%04d"--rfc-referencesβ recognize and link to standalone RFC references (like"RFC 822") π--rfc-base-url=<URL>β base URL for RFC references. Default:"https://tools.ietf.org/html/"--tab-width=<width>β how many spaces a tab expands to. Default is8.--trim-footnote-reference-spaceβ remove the spaces before footnote references.--leave-footnote-reference-spaceβ leave the spaces before footnote references alone π--syntax-highlight=<format>β the token name set used for parsing code with Pygments. it's one of"long","short", or"none"(and"none"means no parsing at all, obviously). default is"long".--smart-quotes=<yes/no/alt>β swaps straight quotation marks for the typographic form. one of"yes","no","alt[ernative]". default is"no"β--smartquotes-locales=<language:quotes[,language:quotes,...]>β which characters get used as "smart quotes" for<language>.--word-level-inline-markupβ inline markup only gets recognized at word boundaries (aka right next to punctuation or whitespace). you can force character-level inline markup recognition with\(backslash + space). this one is the default π§--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 here. it's useful for East Asian languages. also: it's Experimental, so like, heads up π
β¨ Standalone Reader Options β¨
--no-doc-titleβ disables the promotion of a lone top-level section title into a document title (and the subsequent section title β document subtitle promotion too; that whole thing is enabled by default).--no-doc-infoβ disables the bibliographic field list transform (which is 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 π¦
β¨ HTML Writer Options β¨
--template=<file>β the template file. it's UTF-8 encoded, and the default is"/usr/share/docutils/writers/html4css1/template.txt"--stylesheet=<URL[,URL,...]>β comma separated list of stylesheet URLs. this one overrides any previous--stylesheetand--stylesheet-pathsettings, so it fully eats π--stylesheet-path=<file[,file,...]>β comma separated list of stylesheet paths. relative paths get expanded if a matching file turns up in the--stylesheet-dirs. and with--link-stylesheet, the path gets rewritten relative to the output HTML file. (default:"html4css1.css")--stylesheet-dirs=<dir[,dir,...]>β comma-separated list of directories where stylesheets live. it's used by--stylesheet-pathwhen expanding those relative path arguments. (default:".,/usr/share/docutils/writers/html4css1,/usr/share/docutils/writers/html5_polyglot") π--embed-stylesheetβ embeds the stylesheet(s) straight into the output HTML file. the stylesheet files have to be accessible during processing for this to work. (default)--link-stylesheetβ links to the stylesheet(s) in the output HTML file instead.--initial-header-level=<level>β sets the initial header level. this does not touch the document title & subtitle (go look at--no-doc-titlefor those). (default:1for"<h1>")--footnote-references=<format>β format for footnote references: one of"superscript"or"brackets". (default:"brackets") π--attribution=<format>β format for block quote attributions: one of"dash"(that's an em-dash prefix),"parentheses"/"parens", or"none". (default:"dash")--compact-listsβ removes the extra vertical whitespace between items of "simple" bullet lists and enumerated lists. (default)--no-compact-listsβ disables compact simple bullet and enumerated lists.--compact-field-listsβ removes the extra vertical whitespace between items of simple field lists. (default)--no-compact-field-listsβ disables compact simple field lists π«Ά--table-style=<style>β class value(s) assigned to all tables. the defined styles are:borderless,booktabs,align-left,align-center,alignright,colwidths-auto,colwidths-gridβ¨--math-output=<format [option(s)]>β math output format (one of"MathML","HTML","MathJax", or"LaTeX") plus option(s). (default:"HTML math.css")--xml-declarationβ prepend an XML declaration. (default)--no-xml-declarationβ omit the XML declaration.--cloak-email-addressesβ obfuscates email addresses to confuse harvesters while still keeping email links usable with standards-compliant browsers. sneaky, iconic, we love her π
β¨ HTML4 Writer Options β¨
--field-name-limit=<level>β the maximum width (in characters) for one-column field names. longer field names will span an entire row of the table used to render the field list. default is14characters, and0means "no limit" π--option-limit=<level>β the maximum width (in characters) for options in option lists. longer options will span an entire row of the table used to render the option list. default is14characters, and0means "no limit" π
and that's the whole page, bestie β no cap, nothing skipped π«Ά this build is thedebianone, datedJanuary 2026, and it's filed underMYSTNB-DOCUTILS-HTML(1)in section 1. go forth and slay your HTML conversion π β¨
π¦ 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