CM2PSEUDOXML(1)
π CM2PSEUDOXML β the manual page, but make it make sense
okay bestie, so this is cm2pseudoxml, straight out of the recommonmark Python package. It's a whole little program and I'm about to explain it to you like we're texting at 1am. π«Ά
β¨ NAME β¨
cm2pseudoxml β the girlies' favourite way to turn a CommonMark file into a pseudo-XML document. no cap, that's literally the whole job. π
πΈ SYNOPSIS πΈ
cm2pseudoxml [options] [<source> [<destination>]]
π¦ DESCRIPTION π¦
So here's the tea: this thing generates a pseudo-XML document from markdown sources. π
It reads from <source> β and if you don't give it one, it just reads from stdin like a chill little gremlin. It writes to <destination> β and if you don't give it one of those either, it writes to stdout. periodt. β¨
And if you want the full detailed settings reference (like, the whole encyclopedia), it's over at https://docutils.sourceforge.io/docs/user/config.html. go off, docutils. π
π OPTIONS π
π General Docutils Options:
--title=TITLEβ sets the document title as metadata. it's giving "yes, I have a name, thanks for asking". π--generator,-gβ adds a "Generated by Docutils" credit and link, so everyone knows who did it. main character credits energy.--no-generatorβ no generator credit. humble era. π--date,-dβ stamps the date at the end of the document (UTC). timezone-correct and proud. π--time,-tβ stamps the time & date (UTC). more precise, more iconic. β--no-datestampβ no datestamp of any kind. we're timeless, bestie. π--source-link,-sβ adds a "View document source" link. transparency queen. π¦--source-url=<URL>β uses<URL>for a source link; this implies--source-link. (yes, it brings its friend along, that's the vibe.) π₯--no-source-linkβ no "View document source" link. mystery era. π--toc-entry-backlinksβ links from section headers to TOC entries. this is the default, so it's already doing this. slay.--toc-top-backlinksβ links from section headers to the top of the TOC instead. lil change of plans, still cute. π--no-toc-backlinksβ disables backlinks to the table of contents entirely. bye π--footnote-backlinksβ links from footnotes/citations to references. also the default. πΈ--no-footnote-backlinksβ disables backlinks from footnotes and citations. no jumping back, we live in the moment. β¨--section-numberingβ enables section numbering by Docutils. default, and honestly? organized. π--no-section-numberingβ disables section numbering by Docutils. chaos era, valid. π--strip-commentsβ removes comment elements from the document tree. not me deleting the receipts. π--leave-commentsβ leaves comment elements in the document tree. this is the default. they stay. π«Ά--strip-elements-with-class=<class>β removes all elements withclasses="<class>"from the document tree. > β οΈ warning: potentially dangerous; use with caution. also it's a multiple-use option, so you can stack it. π--strip-class=<class>β removes allclasses="<class>"attributes from elements in the document tree. > β οΈ warning: potentially dangerous; use with caution. and yes, multiple-use option again. π₯--report=<level>,-r <level>β reports system messages at or higher than<level>. your choices are"info"or"1","warning"/"2"(that one's the default),"error"/"3","severe"/"4", and"none"/"5". pick your volume, bestie. π--verbose,-vβ reports all system messages. literally same as"--report=1". it's giving "tell me everything". π¦--quiet,-qβ reports no system messages at all. same as"--report=5". shhh era. π€«--halt=<level>β halts execution at system messages at or above<level>. levels work the same as--report. default:4(severe). it will simply stop. π--strictβ halts at the slightest problem. same as"--halt=info". no crumbs of tolerance. π--exit-status=<level>β enables a non-zero exit status for non-halting system messages at or above<level>. default:5(disabled). π--debugβ enables debug-level system messages and diagnostics. detective mode. π--no-debugβ disables debug output. this is the default. π--warnings=<file>β sends the output of system messages to<file>. gossip goes in the folder. π--tracebackβ enables Python tracebacks when Docutils is halted. we love a paper trail. π--no-tracebackβ disables Python tracebacks. default. no receipts. π--input-encoding=<name[:handler]>,-i <name[:handler]>β specifies the encoding and optionally the error handler of input text. default:<auto-detect>:strict. she figures it out herself. β¨--input-encoding-error-handler=INPUT_ENCODING_ERROR_HANDLERβ the error handler for undecodable characters. choices:"strict"(default),"ignore", and"replace". π--output-encoding=<name[:handler]>,-o <name[:handler]>β specifies the text encoding and optionally the error handler for output. default:utf-8:strict. iconic, obviously. π--output-encoding-error-handler=OUTPUT_ENCODING_ERROR_HANDLERβ the error handler for unencodable output characters. your picks:"strict"(default),"ignore","replace","xmlcharrefreplace","backslashreplace". π--error-encoding=<name[:handler]>,-e <name[:handler]>β specifies text encoding and optionally the error handler for error output. default text encoding: system encoding. default error handler:backslashreplace. π--error-encoding-error-handler=ERROR_ENCODING_ERROR_HANDLERβ the error handler for unencodable characters in error output. default:backslashreplace. π--language=<name>,-l <name>β specifies the language as a BCP 47 language tag. default:en. π--record-dependencies=<file>β writes output file dependencies to<file>. keeping tabs, respectfully. π--config=<file>β reads configuration settings from<file>, if it exists. if it doesn't exist, no drama. π¦--version,-Vβ shows this program's version number and exits. π--help,-hβ shows this help message and exits. the classic. β
π§ Generic Parser Options:
--no-file-insertionβ disables directives that insert the contents of an external file; they get replaced with a"warning"system message instead. π--file-insertion-enabledβ enables directives that insert the contents of an external file. default, so it's on. π«Ά--no-rawβ disables the"raw"directive; it gets replaced with a"warning"system message. π₯--raw-enabledβ enables the"raw"directive. default. πΈ--line-length-limit=<length>β the maximal number of characters in an input line. default10 000. that's a long line, bestie. π
π Standalone Reader Options:
--no-doc-titleβ disables the promotion of a lone top-level section title to document title (and the subsequent section title to document subtitle promotion, which 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. π
π Docutils pseudo-XML Writer Options:
--detailedβ pretty-prints<#text>nodes. it's giving β¨aestheticβ¨. π
π AUTHOR π
Steve Genoud and Luca Barbato. legends, honestly. π«Ά
β COPYRIGHT β
Copyright (C) 2014 Steve Genoud and Luca Barbato
okay that's the whole thing, bestie, you're officially fluent. π β¨
recommonmark (Debian 0.7.1+ds-5), February 2023 β that's the source, the version and the date, and that's the sign-off, love u, bye ππ¦π
π¦ where this page comes from
- debian bookworm: recommonmark-scripts 0.7.1+ds-5 Β· MIT
- ubuntu noble: recommonmark-scripts 0.7.1+ds-5 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms