Convert the Markdown content in the XML's
<Quote>tag to the HTML
Node.js private module for extracting the Markdown content from XML via XPath and converting it to the HTML in a terminal.
Based on Camaro and Markdown-it libraries.
You need Node.js version 10+. Then install node module globally:
npm install --global citeccyr/xml-quote-md-to-htmlxml-quote-md-to-html input.xmlxml-quote-md-to-html input.xml -o output.html cat input.xml | xml-quote-md-to-htmltype input.xml | xml-quote-md-to-htmlxml-quote-md-to-html input.xml -q "//Quote" xml-quote-md-to-html --help
Usage: xml-quote-md-to-html [options] [input.xml]
Defaults:
input.xml - STDIN
output.html - STDOUT
Options:
-v, --version output the version number
-o, --output [output.html] Output HTML result (default: STDOUT)
-q, --quote [xpath] XPath for extraction of the markdown quote (default: /root/Linkage/Object/Annotation/Quote)
-h, --help output usage information
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
Apache-2.0
© 2018 Sergey N