aboutsummaryrefslogtreecommitdiff
path: root/src/Text
AgeCommit message (Collapse)AuthorFilesLines
2018-03-13DokuWiki writer: rewrite backSlashLineBreaks (#4445)Mauro Bieg1-7/+11
Rewrite for efficiency.
2018-03-13Docx reader: Parse nested smart tags.Jesse Rosenthal2-16/+11
Make unwrapSDT into a general `unwrap` function that can unwrap both nested SDT tags and smartTags. This makes the SmartTags constructor in the Docx type unnecessary, so we remove it. Closes #4446
2018-03-13Beamer: put hyperlink after `\begin{frame}`.John MacFarlane1-8/+8
and not in the title. If it's in the title, then we get a titlebar on slides with the `plain` attribute, when the id is non-null. This fixes a regression from 1.9.x. Closes #4307.
2018-03-12Docx reader: remove unused docxWarningsAlexander Krotov1-2/+0
2018-03-12Muse reader: make parseBlocks similar to parseBlocksTillAlexander Krotov1-4/+4
2018-03-12Muse reader: require closing tag to have the same indentation as openingAlexander Krotov1-1/+2
2018-03-12Muse reader: do not reparse blocks inside unclosed block tagAlexander Krotov1-4/+4
Fixes #4425
2018-03-11html2pdf: inject base tag wih current working directory (#4443)Mauro Bieg1-1/+9
fixes #4413
2018-03-11Dokuwiki writer: fix LineBreaks in Tables (#4444)Mauro Bieg1-1/+5
fixes #4313
2018-03-12Muse writer: support spans with anchorsAlexander Krotov1-3/+7
2018-03-10Muse reader: parse <class> tagAlexander Krotov1-0/+8
<class> tag is supported by Emacs Muse
2018-03-09Ms writer: asciify pdf anchors, since unicode anchors don't work.John MacFarlane1-4/+11
Closes #4436. Internal links should be converted automatically, so this shouldn't affect users directly.
2018-03-09Raise error if someone tries to print docx, odt, etc. template.John MacFarlane1-0/+3
Closes #4441.
2018-03-08Fixed formatting of DefaultStyle ordered lists in docx writer.John MacFarlane1-6/+6
We want decimal for the top level, not lower roman.
2018-03-07Muse writer: replace smallcaps with emphasis before normalizationAlexander Krotov1-2/+7
2018-03-07Muse writer: output smallcaps as emphasisAlexander Krotov1-1/+1
2018-03-07Muse writer: expand Cite before list normalizationAlexander Krotov1-6/+8
2018-03-07Muse writer: write empty inline lists as <verbatim></verbatim>Alexander Krotov1-2/+4
2018-03-07Muse writer: remove empty Str from the beginning of inline lists during ↵Alexander Krotov1-0/+2
normalization
2018-03-07Muse writer: escape "-" to avoid creating bullet listsAlexander Krotov1-1/+2
2018-03-07Muse reader: do not produce empty Str element for unindented verse linesAlexander Krotov1-2/+3
2018-03-06Muse writer: fix math expansion for more than one expression per paragraphAlexander Krotov1-1/+1
2018-03-05Remove extraneous, significant whitespace in JATS writer output (#4335)Nokome Bentley1-6/+6
This patch fixes some cases where the JATS writer was introducing semantically significant whitespace by indenting and wrapping tags. Note that the JATS spec has a content model for `<p>` tags of `(#PCDATA | ...`. Any tag where `#PCDATA` children are possible should not have any indentation. The same is true for `<th>`, `<td>`, `<term>`, `<label>`.
2018-03-05Muse writer: expand math before inline list normalizationAlexander Krotov1-3/+13
2018-03-02Revert "Commonmark reader: parse HTML as plain text if `-raw_html`."John MacFarlane1-2/+2
This reverts commit 6dd21250288b51f10056b15a83130f76c788d904.
2018-03-02Commonmark reader: parse HTML as plain text if `-raw_html`.John MacFarlane1-2/+2
2018-03-03Muse reader: fix indentation requirements for footnote continuationsAlexander Krotov1-2/+2
2018-03-02Make `Ext_raw_html` default for commonmark format.John MacFarlane1-0/+2
2018-03-02LaTeX reader: Fix regression in package options including underscore.John MacFarlane1-1/+1
Closes #4424.
2018-03-02hlint Muse reader and writerAlexander Krotov2-3/+3
2018-03-02Muse reader: enable <literal> tags even if amuse extension is enabledAlexander Krotov1-2/+0
Amusewiki disables <literal> tags for security reasons. If user wants similar behavior in pandoc, RawBlocks and RawInlines can be removed or replaced with filters.
2018-03-02Muse reader: remove space prefix from <literal> tag contentsAlexander Krotov1-6/+3
2018-03-02Muse writer: join strings during inline normalizationAlexander Krotov1-0/+2
2018-03-02Muse reader: do not consume whitespace while looking for closing end tagAlexander Krotov1-1/+1
Fix for a bug caught by round-trip test.
2018-03-02Org writer: fix a typo s/prettyfy/prettify/Alexander Krotov1-2/+2
2018-02-28Docx reader: Handle nested sdt tags.Jesse Rosenthal1-1/+1
Previously we had only unwrapped one level of sdt tags. Now we recurse if we find them. Closes: #4415
2018-02-28Muse writer: change verse markupAlexander Krotov1-9/+2
Use "> " instead of <verse> tag
2018-02-28Muse writer: remove empty strings during inline normalizationAlexander Krotov1-0/+2
2018-02-28Muse reader: allow <quote> and other tags to be indentedAlexander Krotov1-2/+3
2018-02-27Powerpoint writer: use `trim` from SharedJesse Rosenthal1-3/+2
Instead of writing my own.
2018-02-27Powerpoint writer: Use table stylesJesse Rosenthal1-3/+17
This will use the default table style in the reference-doc file. As a result they will be easier when using in a template, and match the color scheme.
2018-02-27Powerpoint writer: Remove empty slidesJesse Rosenthal1-2/+38
Make sure there are no empty slides in the pptx output. Because of the way that slides were split, these could be accidentally produced by comments after images. When animations are added, there will be a way to add an empty slide with either incremental lists or pauses. Test outputs checked with MS PowerPoint (Office 2013, Windows 10, VBox). Both files have expected output and are not corrupted.
2018-02-26LaTeX reader: make --trace work.John MacFarlane1-2/+6
2018-02-24Lua: register script name in global variableAlbert Krewinkel3-4/+12
The name of the Lua script which is executed is made available in the global Lua variable `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers. Closes: #4393
2018-02-24Muse reader: allow single colon in definition list termAlexander Krotov1-1/+1
2018-02-23Docx reader: code cleanup.Jesse Rosenthal1-10/+9
Make the code in `runStyleToTransform` a bit more consistent.
2018-02-23Docx reader: simplify custom-style reading code.Jesse Rosenthal1-41/+23
2018-02-23Docx reader: Don't look up dependant run styles if +styles is enabled.Jesse Rosenthal1-36/+39
It makes more sense not to interpret -- otherwise using the original document as the reference-doc would produce two of everything: the interpreted version and the uninterpreted style version.
2018-02-23Muse writer: don't indent nested definition listsAlexander Krotov1-1/+3
2018-02-23Docx writer: trim trailing whitespace.Jesse Rosenthal1-14/+14