a12399dbe429f552ab012099491c577de668a81d introduced a regression: If the source text is in Markdown, it gets parsed as RST after translation.
Details
In Sphinx 1.6.7 (and earlier), in publish_msgstr, reader.read() (i.e. SphinxBaseReader.read()) would select the parser based on the source_path suffix. After that commit, the parser is instead set by:
This means that it's always RST that parses the translated text. Obviously, if the translated text is in Markdown syntax, this will not result in a correct translation.
Solution
I'll submit a PR that determines the filetype. Ideally, this can be applied to 2.2.x.
Problem
a12399dbe429f552ab012099491c577de668a81d introduced a regression: If the source text is in Markdown, it gets parsed as RST after translation.
Details
In Sphinx 1.6.7 (and earlier), in
publish_msgstr
,reader.read()
(i.e.SphinxBaseReader.read()
) would select the parser based on thesource_path
suffix. After that commit, the parser is instead set by:This means that it's always RST that parses the translated text. Obviously, if the translated text is in Markdown syntax, this will not result in a correct translation.
Solution
I'll submit a PR that determines the filetype. Ideally, this can be applied to 2.2.x.