14
0

Accepting request 512810 from home:sebix:branches:devel:languages:python

- 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
This commit is contained in:
Thomas Bechtold
2017-07-27 16:26:01 +00:00
committed by Git OBS Bridge
parent 07aff2b537
commit de667903ff
3 changed files with 42 additions and 10 deletions

View File

@@ -0,0 +1,29 @@
--- 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