Skip to main content

Htmlizing IETF Text Documents

This module contains one single function, `markup(text)` which adds HTML markup to what is assumed to be an IETF document (usually an Internet-Draft or an RFC):

from rfc2html import markup
with open('rfc3344.txt') as file:
    text = file.read()
html = markup(text)

As a historic artifact of being a document series which was started at the time when the easiest way of distributing a ‘Request For Comments’ was to type it up on a typewriter and mimeographing it, RFCs and Internet-Drafts have traditionally been published as plaintext documents with a maximum line length of 72 characters.

This format isn’t particularly appropriate in a web-centric world, howerver, so starting in 2002, Henrik Levkowetz started using scripts to convert the plaintext documents into HTML documents with the same look-and-feel as the plaintext originals, but with internal and external HTML links in order to facilitate browsing.

Since 2004, the resulting documents have been made available on tools.ietf.org.

This module is a packaging of the htmlization code from version 1.113 of the htmlizing script. Earlier version of the script are available at tools.ietf.org/tools/rfcmarkup

Changelog

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rfc2html-2.0.0.tar.gz (9.4 kB view details)

Uploaded Source

File details

Details for the file rfc2html-2.0.0.tar.gz.

File metadata

  • Download URL: rfc2html-2.0.0.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rfc2html-2.0.0.tar.gz
Algorithm Hash digest
SHA256 e3978cc71d1016bc09ecfbc930174c98372e2a61388543012fa320bd3aec89b9
MD5 dfdbef18921534f3f27bf8ed4d8ec1bb
BLAKE2b-256 da5de67f07761d17e9614b139533f56c376dbf89de7f87e51efad992e137c291

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page