Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2017-02-25 | LaTeX reader: allow hspace and vspace to count as raw block or inline. | John MacFarlane | 1 | -3/+5 | |
Previously we would refuse to parse anything as raw inline if it was in the blockCommands list. Now we allow exceptions if they're listed under ignoreInlines in inlineCommands. This should make it easier e.g. to include an \hspace between two side-by-side raw LaTeX tables. | |||||
2017-02-25 | Revert "LaTeX reader: don't treat `\vspace` and `\hspace` as block commands." | John MacFarlane | 1 | -0/+1 | |
This reverts commit 2873cd82886d1fa557bf3abde37b5ceb3cadf40c. | |||||
2017-02-24 | Removed unnecessary import. | John MacFarlane | 1 | -1/+0 | |
2017-02-24 | Use catchError instead of runExceptT. | John MacFarlane | 3 | -57/+68 | |
2017-02-24 | Implemented `\graphicspath` in LaTeX reader. | John MacFarlane | 2 | -69/+86 | |
Closes #736. | |||||
2017-02-24 | Removed useless TEXINPUTS stuff for context2pdf. | John MacFarlane | 1 | -7/+2 | |
mkiv context doesn't use TEXINPUTS. | |||||
2017-02-24 | Shared: remove 'warn'. | John MacFarlane | 3 | -19/+17 | |
PDF writer: Use 'report' instead of 'warn', make it sensitive to verbosity settings. | |||||
2017-02-24 | Logging: Remove UsingResourceFrom, add CouldNotConvertImage | John MacFarlane | 1 | -8/+9 | |
2017-02-24 | Class: Add stResourcePath to CommonState, getResourcePath, setResourcePath. | John MacFarlane | 2 | -8/+40 | |
To be used in implementing `\graphicspath` in LaTeX, and possibly in things like PDF production via context. Use resource path in fetchItem. Issue an info message if we get a resource from somewhere other than ".". Added UsingResourceFrom to log message. | |||||
2017-02-24 | EPUB reader: minor refactoring, avoiding explicit MediaBag handling. | John MacFarlane | 1 | -8/+6 | |
This all works behind the scenes in CommonState plumbing. | |||||
2017-02-24 | Some fixes to the preceding revisions in SelfContained. | John MacFarlane | 1 | -27/+42 | |
Make sure we don't duplicate end tags for script or link. | |||||
2017-02-24 | SelfContained: don't use data URIs for script or style. | John MacFarlane | 2 | -11/+37 | |
Instead, just use script or style tags with the content inside. The old method with data URIs prevents certain optimizations outside pandoc. Exception: data URIs are still used when a script contains `</script>` or a style contains `</`. Closes #3423. Also, in MIME, use application/javascript (not application/x-javascript). | |||||
2017-02-24 | Refactored getData from getDataURI in SelfContained. | John MacFarlane | 1 | -5/+15 | |
2017-02-23 | Removed `\strut` at beginning of table cells. | John MacFarlane | 1 | -1/+1 | |
This fixes a problem with alignment of lists in table cells (closes #3436). The `\strut` at the end seems to be enough to avoid the too-close spacing that motivated addition of the strut in #1573. | |||||
2017-02-23 | Removed unnecessary import. | John MacFarlane | 1 | -5/+1 | |
2017-02-23 | Special-case .stretch class for images in reveal.js. | John MacFarlane | 1 | -6/+21 | |
Now in reveal.js, an image with class `stretch` in a paragraph by itself will stretch to fill the whole screen, with no caption or figure environment. Closes #1291. | |||||
2017-02-23 | Fix compiler warning for older GHC versions. | John MacFarlane | 1 | -2/+5 | |
2017-02-23 | Restore "Fetching..." message with openURL if --verbose. | John MacFarlane | 1 | -1/+3 | |
2017-02-23 | Use PandocIOError in Class. | John MacFarlane | 2 | -41/+24 | |
2017-02-23 | Error: Changed PandocFileReadError to PandocIOError | John MacFarlane | 1 | -2/+3 | |
2017-02-23 | Shared.openURL: Changed type from an Either. | John MacFarlane | 1 | -6/+9 | |
Now it will just raise an exception to be trapped later. | |||||
2017-02-23 | PDF: make sure that verbosity is respected when we fetch items. | John MacFarlane | 1 | -10/+19 | |
2017-02-23 | Put makeSelfContained in PandocMonad instead of IO. | John MacFarlane | 3 | -49/+58 | |
This removes the need to pass MediaBag around and improves exceptions. It also opens up the possibility of using makeSelfContained purely. | |||||
2017-02-23 | Pretty: simplified definition of realLength. | John MacFarlane | 1 | -1/+1 | |
2017-02-22 | Added emf to mimeTypes with type application/x-msmetafile. | John MacFarlane | 1 | -0/+1 | |
See #1713. | |||||
2017-02-22 | When parsing raw LaTeX commands, include trailing space. | John MacFarlane | 1 | -2/+2 | |
Otherwise things like `\noindent foo` break and turn into `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other formats that allow `raw_tex`). Closes #1773. | |||||
2017-02-22 | imageSize interface change | mb21 | 5 | -10/+9 | |
`imageSize img` is now `imageSize opts img` | |||||
2017-02-22 | make imageSize recognize basic SVG dimensions, see #3462 | mb21 | 2 | -16/+49 | |
2017-02-21 | MediaWiki reader: ensure that list starts begin at left margin. | John MacFarlane | 1 | -9/+18 | |
Including when they're in tables or other list items. Closes #2606. | |||||
2017-02-21 | MediaWiki writer: Remove newline before `</ref>`. | John MacFarlane | 1 | -2/+2 | |
Closes #2652. | |||||
2017-02-21 | MediaWiki writer: add display attribute on `<math>` tags. | John MacFarlane | 1 | -2/+5 | |
This allows display math to be rendered properly. Closes #3452. | |||||
2017-02-21 | MediaWiki reader: fixed more table issues. | John MacFarlane | 1 | -9/+7 | |
Closes #2649. | |||||
2017-02-21 | MediaWiki reader: Allow blank line after table start. | John MacFarlane | 1 | -1/+1 | |
See #2649. | |||||
2017-02-21 | MediaWiki tables: allow extra hyphens after `|-` in tables. | John MacFarlane | 1 | -1/+1 | |
I didn't see this documented anywhere, but it seems to be allowed (and common). See #2649. This addresses some of the cases there, but not all. | |||||
2017-02-21 | MediaWiki writer: Updated list of syntax highlighting languages. | John MacFarlane | 1 | -17/+641 | |
Now 'r' gets you `<source>` rather than `<code>` (among others). Closes #3461. | |||||
2017-02-20 | Use lazy loading for reveal.js slide shows. | John MacFarlane | 2 | -8/+19 | |
* In HTML writer, with reveal.js we use data-src instead of src for images. * In SelfContained, we also load resources from data-src. Closes #2283. | |||||
2017-02-20 | Added Functor constraint to keep ghc 7.8.4 happy. | John MacFarlane | 1 | -1/+1 | |
2017-02-20 | Tighten up HasQuoteContext instance in HTML reader. | John MacFarlane | 1 | -1/+1 | |
We constrain it to the state used in the HTML reader. Otherwise we can get overlap with the general instance for ParserState m. | |||||
2017-02-20 | Revert "Refined constraint for HasQuoteContext instance." | John MacFarlane | 1 | -1/+1 | |
This reverts commit 3c427fc17d53a564305aadde015dd2f048d9ff71. | |||||
2017-02-20 | Refined constraint for HasQuoteContext instance. | John MacFarlane | 1 | -1/+1 | |
in hopes that this will help the ghc 7.8.4 build... | |||||
2017-02-20 | Removed redundant constraint. | John MacFarlane | 1 | -2/+1 | |
2017-02-19 | Error: added PandocMakePDFError | John MacFarlane | 1 | -0/+2 | |
2017-02-17 | Added warnings for non-rendered blocks to some writers. | John MacFarlane | 10 | -76/+133 | |
2017-02-17 | FB2 writer: don't render RawBlock as code. | John MacFarlane | 1 | -4/+7 | |
2017-02-17 | Markdown reader: Use logMessage instead of report. | John MacFarlane | 1 | -5/+7 | |
2017-02-17 | Fixed repeated log messages in RST reader. | John MacFarlane | 1 | -13/+14 | |
See #3447. To complete fixes on this issue, we need to do the same for the other readers. Note that the changes required are minimal -- add reportLogMessages to the end of the main parser, and replace report with logMessage. (except for trace) | |||||
2017-02-17 | Parsing: Added HasLogMessages, logMessage, reportLogMessages. | John MacFarlane | 1 | -0/+25 | |
We need to do logging by updating parser state, or we'll get inappropriate and repeated log messages when there is parser backtracking. See #3447. | |||||
2017-02-15 | Fix indirect hyperlink targets. Closes #512. | John MacFarlane | 1 | -23/+33 | |
2017-02-15 | Add CircularReference constructor to LogMessage. | John MacFarlane | 1 | -0/+10 | |
2017-02-15 | ZimWiki writer: removed internal formatting from note and table cells, ↵ | Alex Ivkin | 1 | -24/+54 | |
because ZimWiki does not support it (#3446) |