We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eee4e49 commit b8f70b7Copy full SHA for b8f70b7
markdown/htmlparser.py
@@ -135,5 +135,6 @@ def handle_decl(self, data):
135
def handle_pi(self, data):
136
self.handle_empty_tag('<?{}?>'.format(data), is_block=True)
137
138
- def handle_unknown_decl(self, data):
139
- self.handle_empty_tag('<![{}]>'.format(data), is_block=True)
+ def unknown_decl(self, data):
+ end = ']]>' if data.startswith('CDATA[') else ']>'
140
+ self.handle_empty_tag('<![{}{}'.format(data, end), is_block=True)
0 commit comments