CM2PSEUDOXML(1)

πŸ“¦
version 0.7.1 Β· 4 versions
, in debian bookworm, ubuntu noble

πŸ’… 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 with classes="<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 all classes="<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. default 10 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 (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