Render IETF RFCs as HTML, with indentation interpreted.
npm install ietf-rfc-html-pmb
ietf-rfc-html-pmb
=================
Render IETF RFCs as HTML, with indentation interpreted.
You have been warned. ;-)
API
---
This module UMD-exports one function:
Where text should be a string or buffer with the contents of rfcXXXX.txt.
Setup
-----
1. Download the RFCs you want to render.
* To mirror all of them, you can use util/update_rfcs_via_rsync.sh.
1. If you want the web demo, try it and adjust webserver paths as needed.
Usage
-----
* API: see src/cli.js
* CLI: nodejs src/cli.js text-only/rfcXXXX.txt
* Web: src/fetch.html
Known issues
------------
* Needs more/better tests and docs.
* Does anyone know an official, license-friendly source for
the XML versions
of the RFCs? Rendering them might be more reliable than guessing the
meaning of whitespace. OTOH, XML parsing is a beast of its own.
[phutility-jsonp]: https://github.com/mk-pmb/phutility-160816-pmb/blob/master/web/http/jsonp_file_reader.php
License
-------
ISC