aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-04-27RST writer: preserve empty inline parents in flatten (#4603)Francesco Occhipinti
2018-04-26LaTeX writer: Update \lstinline delimiters. (#4369)Tim Parenti
Don't delimit \lstinline with characters that are normally escaped. Follow-up to #4111, #4271.
2018-04-26Add FB2 reader (#4539)Alexander
2018-04-26Merge branch 'fb2-hrblankline' of https://github.com/labdsf/pandoc into ↵John MacFarlane
labdsf-fb2-hrblankline
2018-04-26RST reader: fix anonymous redirects with backticks.John MacFarlane
Closes #4598.
2018-04-26Make `--ascii` work for all XML formats (ICML, OPML, JATS,...).John MacFarlane
Also document in manual.
2018-04-26Make `--ascii` work with `ms` and `man` output.John MacFarlane
2018-04-26RST reader: flatten nested inlines, closes #4368 (#4554)Francesco Occhipinti
nested inlines are not valid RST syntax, so we flatten them following some readability criteria discussed in #4368.
2018-04-26DocBook Reader: Read Latex math as output by asciidoctor (#4569)Joe Hermaszewski
2018-04-26Remove unused importAlexander Krotov
2018-04-26Muse reader: allow nested footnotesAlexander Krotov
2018-04-26Muse reader: use Data.Map.member instead of lookupAlexander Krotov
2018-04-26Simplify curSlideHasSpeakerNotesAlexander Krotov
2018-04-25LaTeX reader: fixed previous commit.John MacFarlane
2018-04-25LaTeX reader: Improve handling of raw LaTeX (for markdown etc.).John MacFarlane
Previously there were some bugs in how macros were handled. Closes #4589, #4594.
2018-04-25LaTeX reader: support `\MakeUppercase`, `\MakeLowercase'.John MacFarlane
Also `\MakeTextUppercase`, `\MakeTextLowercase` from textcase and `\uppercase`, `\lowercase`. We don't mimic exactly the quirky semantic differences between these commands, but just uppercase/lowercase regular strings within them. We leave commands and code alone. Closes #4595.
2018-04-25Removed deprecated ancient HTML math methods.John MacFarlane
Removed `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`, `--asciimathml` options. Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from `Text.Pandoc.Options.HTMLMathMethod` [API change]. Removed unneeded data file LaTeXMathML.js and updated tests. Bumped version to 2.2.
2018-04-25Added licensing headers for DocBook, EPUB, JATS, OPML readers.John MacFarlane
See #4592.
2018-04-22RST reader: allow < 3 spaces indent under directives.John MacFarlane
Closes #4579.
2018-04-21Markdown reader/writer: spacing adjustments in tables.John MacFarlane
* Markdown writer now includes a blank line at the end of the row in a single-row multiline table, to prevent it from being interpreted as a simple table. Closes #4578. * Markdown reader does a better job computing the relative width of the last column in a multiline table, so we can round-trip tables without constantly shrinking the last column.
2018-04-21makePDF: Don't try to convert eps files.John MacFarlane
pdflatex converts them itself, and JuicyPixels can't do it. See #2067.
2018-04-21makePDF: For pdflatex, use a temp dir in the working directory.John MacFarlane
Otherwise we can have problems with things like epstopdf.pl, which pdflatex runs to convert eps files and which won't run on a file above the working directory in restricted mode.
2018-04-21Mime: Use the alias application/eps for eps.John MacFarlane
Instead of application/postscript. This will ensure that we retain the eps extension after reading the image into a mediabag and writing it again. See #2067.
2018-04-19Markdown reader: allow empty attributes.John MacFarlane
See #2944.
2018-04-19RST writer: use more consistent indentation.John MacFarlane
Previously we used an odd mix of 3- and 4-space indentation. Now we use 3-space indentation, except for ordered lists, where indentation must depend on the width of the list marker. Closes #4563.
2018-04-19Parsing.uri: don't treat `*` characters at end as part of URI.John MacFarlane
This fixes #4561, a bug parsing emphasized bare links in RST.
2018-04-19Text.Pandoc.Class.writeMedia: unescape URI-escaping in file path.John MacFarlane
This avoids writing things like `file%20one.png` to the file system.
2018-04-19EPUB reader: fix images with space in file path.John MacFarlane
Closes #4344.
2018-04-19FB2 writer: convert metadata value "abstract" to book annotationAlexander Krotov
2018-04-19Muse reader: allow "-" in anchorsAlexander Krotov
2018-04-18Markdown reader: handle table w/o following blank line in fenced div.John MacFarlane
Closes #4560.
2018-04-17Docx reader: Combine codeBlocksJesse Rosenthal
This prevents a multiline codeblock in word from being read as different paragraphs. This takes place in the Combine module to occur during the normal combining of divs during conversion. Note that this specifies that the attributes of the `CodeBlock`s must be the same. The docx reader creates codeBlocks without attrs, so this is trivially satisified.
2018-04-16Markdown reader: remove "fallback" for doubleQuote parser.John MacFarlane
Previously the parser tried to be efficient -- if no end double quote was found, it would just return the contents. But this could backfire in a case like: **this should "be bold** since the fallback would return the content `"be bold**` and the closing boldface delimiter would never be encountered.
2018-04-16Beamer writer: don't use format specifier for default ordered lists.John MacFarlane
This gives better results for styles that put ordered list markers in boxes or circles. Closes #4556.
2018-04-16hlint Muse writerAlexander Krotov
2018-04-16Muse writer: simplify isHorizontalRuleAlexander Krotov
2018-04-16Muse reader: allow verse to be indentedAlexander Krotov
Muse writer indents verse blocks in definition list more than necessary, so Muse reader should parse them.
2018-04-16Muse reader code cleanupAlexander Krotov
2018-04-16Muse writer: escape definition list terms starting with list markersAlexander Krotov
2018-04-15Ms writer: font improvements.John MacFarlane
* Use `\f[R]` rather than `\f[]` to reset. The latter returns to the previous font, which gives unintended results in some cases. * Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`, since the header font is automatically bold. * Use `\f[CB]` rather than `\f[BC]` for monospace bold. Closes #4552.
2018-04-15Muse reader: don't allow footnote references inside linksAlexander Krotov
2018-04-15Muse writer: escape strings starting with spaceAlexander Krotov
2018-04-15Muse reader: allow URL to be emptyAlexander Krotov
Muse writer can write links with empty URLs, so Muse reader should read them.
2018-04-15Muse reader: require that comment semicolons are in the first columnAlexander Krotov
Fixes #4551
2018-04-14Added a needed import in Text.Pandoc.App.John MacFarlane
2018-04-14Ms writer link improvements.John MacFarlane
+ Create pdf anchor for a Div with an identifier. + Escape `/` character in anchor ids. + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN to avoid ambiguity. This is intended to help with #4515; however, in my tests, the link to the reference does not seem to work. I'm not sure why.
2018-04-14Man writer: Don't escape U+2019 as '.John MacFarlane
Closes #4550.
2018-04-12Fix bash completion for `--print-default-data-file`.John MacFarlane
Previously this looked in the filesystem, even if pandoc was compiled with `embed_data_files` (and sometimes it looked in a nonexistent build directory). Now the bash completion script just includes a hard-coded list of data file names. See #4549.
2018-04-10Muse writer: escape > less oftenAlexander Krotov
> should be escaped only when it can start verse, i.e., at the beginning of the line.
2018-04-09PDF: Use withTempDir in html2pdf.John MacFarlane
This is intended to help with #4524, a problem on Windows where using weasyprint led to a blank PDF.