You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the Markdown source, I get ['python'], but with the ReST source I get ['sourceCode', 'python']. Should these not be the same? This makes language detection problematic.
The text was updated successfully, but these errors were encountered:
Good point, e.g. the markdown, gfm, docbook readers all render to CodeBlock ("",["python"] ... (using -t native). So this seems like an inconsistency in the rst reader.
I see from the source that the LaTeX and Markdown readers add the
`sourceCode` class when parsing literate Haskell.
I can't recall whether there is any reason for this.
Probably not, because nothing else in the source seems to use it.
Mauro Bieg <notifications@github.com> writes:
Good point, e.g. the `markdown`, `gfm`, `docbook` readers all render to `CodeBlock ("",["python"] ...` (using `-t native`). So this seems like an inconsistency in the rst reader.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#4523 (comment)
I have the following Markdown and ReST source files:
I have written a simple Python filter that prints
classes
to a file.With the Markdown source, I get
['python']
, but with the ReST source I get['sourceCode', 'python']
. Should these not be the same? This makes language detection problematic.The text was updated successfully, but these errors were encountered: