summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Org reader: respect column width settingsAlbert Krewinkel2016-11-24
| | | | | | | | | | | | | Table column properties can optionally specify a column's width with which it is displayed in the buffer. Some exporters, notably the ODT exporter in org-mode v9.0, use these values to calculate relative column widths. The org reader now implements the same behavior. Note that the org-mode LaTeX and HTML exporters in Emacs don't support this feature yet, which should be kept in mind by users who use the column widths parameters. Closes: #3246
* LaTeX writer: use `\autocites*` when "suppress-author" citation used.John MacFarlane2016-11-24
|
* Fixed some bugs in Pretty that caused blank lines in tables.John MacFarlane2016-11-23
| | | | | | | | | The bugs caused spurious blank lines in grid tables when we had things like blankline $$ blankline Closes #3251.
* Docx writer: Give full detail when there are errors converting tex math.John MacFarlane2016-11-22
|
* Put 'warn' in MonadIO. Add warnings for math conversions in docx.John MacFarlane2016-11-22
|
* Allow beamer-style <...> options in raw LaTeX (also in Markdown).John MacFarlane2016-11-20
| | | | | | | This allows use of things like `\only<2,3>{my content}` in Markdown that is going to be converted to beamer. Closes #3184.
* LaTeX writer: ensure that simple tables have simple cells.John MacFarlane2016-11-20
| | | | | | | If cells contain more than a single Plain or Para, then we need to set nonzero widths and put contents into minipages. Closes #2666.
* Fix for calculation of column widths for aligned multiline tablesBjörn Peemöller2016-11-19
| | | | | | | | | | | | This also fixes excessive CPU and memory usage for tables when --columns is set in such a way that cells must be very tiny. Now cells are guaranteed to be big enough so that single words don't need to line break, even if this pushes the line length above the column width. Closes #1911.
* Added function to compute the minimal width of a documentBjörn Peemöller2016-11-19
|
* Added error message for illegal call to Pretty.blockBjörn Peemöller2016-11-19
|
* LaTeX reader: improved table handling.John MacFarlane2016-11-19
| | | | | | | | | | We can now parse all of the tables emitted by pandoc in our tests. The only thing we don't get yet are alignments and column widths in more complex tables. See #2669.
* LaTeX reader: limited support for minipage.John MacFarlane2016-11-19
|
* Un-break Travis buildAlbert Krewinkel2016-11-19
| | | | | | Remove whitespace before function documentation The extra spaced cause problems with documentation tools and Travis tests are failing because of this.
* LaTeX reader: improved parsing of tables.John MacFarlane2016-11-19
| | | | | | | | | | Reader can now parse simple LaTeX tables such as those generated by pandoc itself. We still can't handle pandoc multiline tables which involve minipages and column widths. Partially addresses #2669.
* Fixed xref lookup in DocBook reader. Closes #3243.John MacFarlane2016-11-19
| | | | | It previously only worked when the qnames lacked the docbook namespace URI.
* Org reader: Ensure images in paragraphs are not parsed as figuresAlbert Krewinkel2016-11-19
| | | | | This fixes a regression introduced in 7e5220b57c5a48fabe6e43ba270db812593d3463.
* Export Text.Pandoc.getDefaultExtensions.John MacFarlane2016-11-18
| | | | See #3178.
* Docx writer: fixed XML markup for empty cells.John MacFarlane2016-11-18
| | | | | | | Closes #3238. Previously the Compact style wasn't being applied properly to empty cells.
* Markdown writer: Use bracketed form for native spans...John MacFarlane2016-11-18
| | | | | | ...when `bracketed_spans` enabled. Closes #3229.
* Small caps in Bracketed Spans (#3191)ickc2016-11-16
| | | | | | | | * Markdown reader: modify bracketedSpan to check small caps * MANUAL.txt: add description on the use of `bracketed_spans` in small cap * Improve markdown readers: bracketedSpan function EXACTLY as spanHtml
* Adjust widths in Markdown grid tables so that they match on round-trip.John MacFarlane2016-11-15
|
* Allow alignments to be specified in Markdown grid tables.John MacFarlane2016-11-15
|
* Markdown writer: fixed inconsistent spacing issue.John MacFarlane2016-11-15
| | | | | | | | Previously a tight bullet sublist got rendered with a blank line after, while a tight ordered sublist did not. Now we don't get the blank line in either case. Closes #3232.
* HTML reader: only treat "a" element as link if it has href.John MacFarlane2016-11-13
| | | | | | Otherwise treat as span. Closes #3226.
* Use correct mime types for woff and woff2.John MacFarlane2016-11-12
| | | | Closes #3228.
* Markdown writer: Fix escaping of spaces in super/subscript.John MacFarlane2016-11-12
| | | | | | | Previously two backslashes were inserted, which gave a literal backslash. Closes #3225.
* Docx reader: add a placeholder value for CHART.Jesse Rosenthal2016-11-10
| | | | | | We wrap `[CHART]` in a `<span class="chart">`. Note that it maps to inlines because, in docx, anything in a drawing tag can be part of a larger paragraph.
* Docx reader: Be more specific in parsing imagesJesse Rosenthal2016-11-10
| | | | | | | We not only want "w:drawing", because that could also include charts. Now we specify "w:drawing"//"pic:pic". This shouldn't change behavior at all, but it's a first step toward allowing other sorts of drawing data as well.
* Org reader: allow HTML attribs on non-figure imagesAlbert Krewinkel2016-11-09
| | | | | | | | | | | Images which are the only element in a paragraph can still be given HTML attributes, even if the image does not have a caption and is hence not a figure. The following will add set the `width` attribute of the image to `50%`: #+ATTR_HTML: :width 50% [[file:image.jpg]] Closes: #3222
* Inline code when text has a special styleHubert Plociniczak2016-11-08
| | | | | | | | | | | | When a piece of text has a text 'Source_Text' then we assume that this is a piece of the document that represents a code that needs to be inlined. Addapted an odt writer to also reflect that change; previously it was just writing a 'preformatted' text using a non-distinguishable font style. Code blocks are still not recognized by the ODT reader. That's a separate issue.
* Markdown reader: Allow reference link labels starting with @...John MacFarlane2016-11-05
| | | | | | | | | | | | | | ...if citations extension disabled. Example: in [link text][@a] [@a]: url `link text` isn't hyperlinked because `[@a]` is parsed as a citation. Previously this happened whether or not the `citations` extension was enabled. Now it happens only if the `citations` extension is enabled. Closes #3209.
* Docx Reader: abstract out function to avoid code repetition.Jesse Rosenthal2016-11-02
|
* Docx writer: Handle title text in images.Jesse Rosenthal2016-11-02
| | | | | We already handled alt text. This just puts the image "title" into the docx "title" attr.
* Docx reader: Handle Alt text and titles in images.Jesse Rosenthal2016-11-02
| | | | | | We use the "description" field as alt text and the "title" field as title. These can be accessed through the "Format Picture" dialog in Word.
* Docx reader utils: handle empty namespace in elemNameJesse Rosenthal2016-11-02
| | | | | | | | | | Previously, if given an empty namespace: (elemName ns "" "foo") `elemName` would output a QName with a `Just ""` namespace. This is never what we want. Now we output a `Nothing`. If someone *does* want a `Just ""` in the namespace, they can enter the QName value explicitly.
* HTML reader: treat `<math>` as MathML by default...John MacFarlane2016-11-02
| | | | | | | | unless something else is explicitly specified in xmlns. Provided it parses as MathML, of course. Also fixed default which should be to inline math if no display attribute is used.
* LaTeX reader: Handle BVerbatim from fancyvrb. Fixes #3203.John MacFarlane2016-11-02
|
* Handle hungarumlaut in LaTeX reader. Closes #3201.John MacFarlane2016-11-01
|
* [odt] Infer tables' header props from rows (#3199)hubertp-lshift2016-11-01
| | | | | | | ODT reader simply provided an empty header list which meant that the contents of the whole table, even if not empty, was simply ignored. While we still do not infer headers we at least have to provide default properties of columns.
* LaTeX reader: allow for []s inside LaTeX optional args.John MacFarlane2016-10-31
| | | | | | | | | | Fixes cases like: \begin{center} \begin{tikzpicture}[baseline={([yshift=+-.5ex]current bounding box.center)}, level distance=24pt] \Tree [.{S} [.NP John\index{i} ] [.VP [.V likes ] [.NP himself\index{i,*j} ]]] \end{tikzpicture} \end{center}
* Org reader: support `ATTR_HTML` for special blocksAlbert Krewinkel2016-10-30
| | | | | | | | | Special blocks (i.e. blocks with unrecognized names) can be prefixed with an `ATTR_HTML` block attribute. The attributes defined in that meta-directive are added to the `Div` which is used to represent the special block. Closes: #3182
* Org reader: support the `todo` export optionAlbert Krewinkel2016-10-30
| | | | | | The `todo` export option allows to toggle the inclusion of TODO keywords in the output. Setting this to `nil` causes TODO keywords to be dropped from headlines. The default is to include the keywords.
* Org reader: add support for todo-markersAlbert Krewinkel2016-10-30
| | | | | | | | | | | | | | | Headlines can have optional todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`, or `#+TYP_TODO` meta directive. Multiple such directives can be given, each adding a new set of recognized todo-markers. If no custom todo-markers are defined, the default `TODO` and `DONE` markers are used. Todo-markers are conceptually separate from headline text and are hence excluded when autogenerating headline IDs. The markers are rendered as spans and labelled with two classes: One class is the markers name, the other signals the todo-state of the marker (either `todo` or `done`).
* Markdown Reader: add attributes for autolink (#3183)Daniele D'Orazio2016-10-26
|
* reveal.js: don't change slide title to level 1 header.John MacFarlane2016-10-25
| | | | | | This also affects other HTML slide show formats. Closes #2221.
* Export Text.Pandoc.Error in Text.Pandoc.John MacFarlane2016-10-24
| | | | [API change]
* Tighten up parsing of raw email addresses.John MacFarlane2016-10-23
| | | | | | | | | | Technically `**@user` is a valid email address, but if we allow things like this, we get bad results in markdown flavors that autolink raw email addresses. (See #2940.) So we exclude a few valid email addresses in order to avoid these more common bad cases. Closes #2940.
* fix example in documentation (#3176)Thomas Weißschuh2016-10-23
| | | Errors are encountered while reading, not writing
* ICML writer: replace partial function (!!) in table handling (#3175)Mauro Bieg2016-10-23
|
* Added `angle_brackets_escapable` extension.John MacFarlane2016-10-22
| | | | | | | | This is needed because github flavored Markdown has a slightly different set of escapable symbols than original Markdown; it includes angle brackets. Closes #2846.