aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
AgeCommit message (Collapse)AuthorFilesLines
2018-09-19Muse reader: parse Text instead of StringAlexander Krotov1-3/+5
Benchmark shows 7% improvement
2018-09-19hlint Muse readerAlexander Krotov1-6/+5
2018-09-19Muse reader: get rid of HTML parser dependencyAlexander Krotov1-5/+13
2018-09-19Muse reader: use openTag and closeTag everywhereAlexander Krotov1-4/+4
2018-09-19Muse reader: make openTag return association listAlexander Krotov1-5/+5
2018-09-19Muse reader: add openTag and closeTag functionsAlexander Krotov1-18/+19
2018-09-18parse rST inlines containing newlines closing #4912danse1-1/+1
this eliminates a regression error introduced after pandoc 2.1.1, affecting rST inline parsing. see the issue for details
2018-09-16Markdown reader: example_lists should work without startnum.John MacFarlane1-1/+3
Closes #4908.
2018-09-16Muse writer: replace newlines in strings with spacesAlexander Krotov1-1/+7
2018-09-16Merge pull request #4906 from chris-martin/patch-2John MacFarlane1-1/+1
Fix haddock on 'Ext_footnotes'
2018-09-16Muse writer: output headers without asterisks if not on the top levelAlexander Krotov1-2/+3
2018-09-15Fix haddock on 'Ext_footnotes'Chris Martin1-1/+1
2018-09-15Merge pull request #4604 from mb21/yaml-fileJohn MacFarlane2-49/+69
Introduce --metadata-file option
2018-09-15Docx writer: add MetaString case for abstract, subtitle (#4905)Mauro Bieg1-0/+2
fixes #4900
2018-09-15introduce --metadata-file optionmb212-2/+31
closes #1960 API change: Text.Pandoc.Readers.Markdown exports now `yamlToMeta`
2018-09-15Markdown Reader: factor out yamlMapmb211-40/+27
2018-09-15Markdown Reader: factor out yamlBsToMetamb211-4/+8
2018-09-15Markdown Reader: rename yamlToMeta to yamlToMetaValuemb211-9/+9
2018-09-12Muse writer: never wrap definition list termsAlexander Krotov1-1/+1
2018-09-11Muse writer: set envInsideBlock = True when rendering notesAlexander Krotov1-1/+2
2018-09-11HTML writer: always output <dt> element, even if it is emptyAlexander Krotov1-3/+1
Fixes #4883
2018-09-11Muse writer: use "" instead of [] for empty StringAlexander Krotov1-1/+1
2018-09-11Muse writer: check for whitespace in the beginning and end of Str'sAlexander Krotov1-0/+2
2018-09-11Muse writer: escape -, ; and > in the beginning of stringsAlexander Krotov1-3/+6
2018-09-11Muse writer: escape list markers in the beginning of notesAlexander Krotov1-1/+4
2018-09-11Muse writer: normalize inline list before testing if tags should be usedAlexander Krotov1-19/+18
2018-09-11Muse writer: use tags instead of lightweight markup for empty stringsAlexander Krotov1-4/+9
2018-09-09LaTeX reader: resolve `\ref` for figure numbers.John MacFarlane1-12/+41
2018-09-09Org writer: don't escape literal `_`, `^`.John MacFarlane1-1/+1
Org doesn't recognize these escapes. Closes #4882.
2018-09-07Fix percentage image scaling in ODT (#4881)Nils Carlson2-2/+4
Image scaling in ODT was broken when a width was set to a percentage. The width was passed to the svg:width field as a pecentage, which is not correct according to the ODT standard. Instead the real dimensions should be passed as width and height and the style:rel-width attribute should be set to the percentage while style:rel-heigh attribute should be set to "scale". The converse is true if a percentage height is given. This is now fixed and documents produced are now properly scaled.
2018-09-07HTML reader: parse `<script type="math/tex` tags as math.John MacFarlane1-0/+12
These are used by MathJax. Closes #4877.
2018-09-06Org reader: respect export option `p` for planning infoAlbert Krewinkel3-2/+28
Inclusion of planning info (*DEADLINE*, *SCHEDULED*, and *CLOSED*) can be controlled via the `p` export option: setting the option to `t` will add all planning information in a *Plain* block below the respective headline.
2018-09-06Org reader internals: disable some GHC extensionsAlbert Krewinkel1-26/+32
The RecordWildCards and ViewPatterns language extensions can be used to shorten code, but usually also makes it harder to read. The DocumentTree module was hence refactored and no longer relies on these extensions.
2018-09-05Org reader: strip planning info from outputAlbert Krewinkel1-1/+35
Planning info is parsed, but not included in the output (as is the default with Emacs Org-mode). Fixes: #4867
2018-09-04hlint some writersAlexander Krotov9-25/+21
2018-09-02Muse reader: autonumber sections in the correct orderAlexander Krotov1-4/+16
Parsing now stops at each section header to ensure the header is registered before parsing of the next section starts.
2018-09-02Muse reader: move duplicate code into "headingStart" functionAlexander Krotov1-9/+10
2018-09-02Muse writer: hlintAlexander Krotov1-4/+4
2018-09-02Muse writer: use lightweight markup when possibleAlexander Krotov1-19/+123
2018-09-02Muse writer: add more commentsAlexander Krotov1-2/+2
2018-09-02Muse writer: escape empty stringsAlexander Krotov1-1/+2
This guarantees that conditionalEscapeString never returns empty string.
2018-09-02Muse reader: allow newline after opening "*" or "**"Alexander Krotov1-1/+9
Emacs Muse allows this.
2018-09-01Muse writer: wrap conditionalEscapeString result into "Muse" typeAlexander Krotov1-22/+28
This removes the need to pass envInsideLinkDescription to it.
2018-09-01Muse writer: separate "shouldEscapeString" functionAlexander Krotov1-6/+11
2018-08-31Muse writer: simplify inline list renderingAlexander Krotov1-15/+12
2018-08-31Muse reader: parse <verse> tag in one passAlexander Krotov1-8/+11
instead of using parseFromString. This change makes it possible to have verbatim </verse> tag inside verse.
2018-08-30Muse reader: hlintAlexander Krotov1-2/+2
2018-08-29LaTeX reader: fixed parsing of \texorpdfstring.John MacFarlane1-1/+1
We were returning the wrong argument as the content.
2018-08-29RSTR reader: don't skip link definitions after comments.John MacFarlane1-0/+1
Closes #4860.
2018-08-28EPUB writer: set epub:type on body element intelligently.John MacFarlane1-6/+22
epub:type of first section epub:type of body -------------------------- ------------------ prologue frontmatter abstract frontmatter acknowledgments frontmatter copyright-page frontmatter dedication frontmatter foreword frontmatter halftitle, frontmatter introduction frontmatter preface frontmatter seriespage frontmatter titlepage frontmatter afterword backmatter appendix backmatter colophon backmatter conclusion backmatter epigraph backmatter Otherwise body will have epub:type 'bodymatter'. This only affects epub3. See http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10 Closes #4823.