git.iko.soy/typeable/pandoc
on master help sign in
Docx Reader: Start list of polyglot section headers.
13fefd7Jesse Rosenthal
src/Text/Pandoc/Readers/Docx.hs+7
@@ -203,6 +203,13 @@ blockQuoteDivs = ["Quote", "BlockQuote", "BlockQuotation"]
203codeDivs :: [String]
203codeDivs :: [String]
204codeDivs = ["SourceCode"]
204codeDivs = ["SourceCode"]
205
205
206+
207+-- For the moment, we have English, Danish, German, and French. This
208+-- is fairly ad-hoc, and there might be a more systematic way to do
209+-- it, but it's better than nothing.
210+headerPrefixes :: [String]
211+headerPrefixes = ["Heading", "Overskrift", "berschrift", "Titre"]
212+
206runElemToInlines :: RunElem -> Inlines
213runElemToInlines :: RunElem -> Inlines
207runElemToInlines (TextRun s) = text s
214runElemToInlines (TextRun s) = text s
208runElemToInlines (LnBrk) = linebreak
215runElemToInlines (LnBrk) = linebreak