Disable Links in docutils' rst Writer (docutils.writers.html4css1)

2015-03-02 10:46 (11 years ago)
Disable Links in docutils' rst Writer (docutils.writers.html4css1)
Couldn't find the configuration item, so I'll use a monkey patch.

from docutils.writers.html4css1 import HTMLTranslator

HTMLTranslator.visit_reference = lambda a, b: None
HTMLTranslator.depart_reference = lambda a, b: None

Related posts

Please rate this article (No signup or login required)
Currently unrated
The author runs the application development company Cyberneura.
We look forward to discussing your development needs.

Categories

Archive