mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-07-31 08:38:07 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user