forked from pool/python-recommonmark
- add fix-commonmark-compatibility.patch to fix imported names OBS-URL: https://build.opensuse.org/request/show/512810 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-recommonmark?expand=0&rev=7
30 lines
793 B
Diff
30 lines
793 B
Diff
--- recommonmark/parser.py 2016-01-05 22:59:38.000000000 +0100
|
|
+++ recommonmark/parser.py 2017-07-20 23:22:53.620321088 +0200
|
|
@@ -3,7 +3,7 @@
|
|
|
|
from docutils import parsers, nodes
|
|
|
|
-from CommonMark import DocParser, HTMLRenderer
|
|
+from CommonMark import Parser, HtmlRenderer
|
|
from warnings import warn
|
|
|
|
__all__ = ['CommonMarkParser']
|
|
@@ -80,7 +80,7 @@
|
|
self.current_node = document
|
|
self.section_handler = _SectionHandler(document)
|
|
|
|
- parser = DocParser()
|
|
+ parser = Parser()
|
|
|
|
ast = parser.parse(inputstring + '\n')
|
|
|
|
@@ -220,7 +220,7 @@
|
|
|
|
|
|
def inline_entity(inline):
|
|
- val = HTMLRenderer().renderInline(inline)
|
|
+ val = HtmlRenderer().renderInline(inline)
|
|
entity_node = nodes.paragraph('', val, format='html')
|
|
return entity_node
|
|
|