Merge pull request #8853 from jpmckinney/markdown-locale-heading-3.x

i18n: Locale transform: Change heading syntax to work for both RST and Markdown
This commit is contained in:
Takeshi KOMIYA
2021-02-09 22:15:51 +09:00
committed by GitHub
+1 -1
View File
@@ -263,7 +263,7 @@ class Locale(SphinxTransform):
# see: http://docutils.sourceforge.net/docs/ref/doctree.html#structural-subelements
if isinstance(node, nodes.title):
# This generates: <section ...><title>msgstr</title></section>
msgstr = msgstr + '\n' + '-' * len(msgstr) * 2
msgstr = msgstr + '\n' + '=' * len(msgstr) * 2
patch = publish_msgstr(self.app, msgstr, source,
node.line, self.config, settings)