Codebase list golang-github-miekg-mmark / 0525256
Import upstream version 1.3.6+dfsg+git20180823.1.4a11391 Debian Janitor 2 years ago
1 changed file(s) with 10 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
0 # !THIS REPOSITORY IS DEPRECATED!
1
2 A new version of mmark can be found at <https://github.com/mmarkdown/mmark>. Its new main site
3 is <https://mmark.nl>.
4
5
06 # Mmark
17
2 Mmark is a powerful markdown processor Go geared towards writing IETF documents. It is, however,
8 Mmark is a powerful markdown processor written in Go geared towards writing IETF documents. It is, however,
39 also suited for writing books and other technical documentation.
410
511 Further documentation can be [found at my site](https://miek.nl/tags/mmark/). A complete syntax
612 document [can be found here](https://github.com/miekg/mmark/wiki/Syntax).
713
8 With Mmark your can write RFCs using markdown. Mmark (written in Go) provides an advanced markdown
14 With Mmark you can write RFCs using markdown. Mmark (written in Go) provides an advanced markdown
915 dialect that processes a (single) file to produce internet-drafts in XML format. Internet-drafts
1016 written in mmark can produce xml2rfc v2, xml2rfc v3 and HTML5 output.
1117
8793
8894 % docker run --rm -v $(pwd):/rfc paulej/rfctools mmark -xml2 -page mmark2rfc.md
8995
90 Making a draft in text form:
96 Making a draft in text form:
9197
9298 % docker run --rm -v $(pwd):/rfc paulej/rfctools mmark -xml2 -page mmark2rfc.md >x.xml \
9399 && docker run --rm -v $(pwd):/rfc -v $HOME/.cache/xml2rfc:/var/cache/xml2rfc \
101107 Note also that the xml2rfc program will write an output file that will be owned by "root".
102108 To prevent that (and the cache files) from being owned by root, we instruct docker to run
103109 using the user's default user ID and group ID via the --user switch.
104
110
105111 There is a script available called "md2rfc" simplifies the above to this:
106112
107113 % docker run --rm -v $(pwd):/rfc -v $HOME/.cache/xml2rfc:/var/cache/xml2rfc \