aboutsummaryrefslogtreecommitdiff
path: root/test/command
AgeCommit message (Collapse)AuthorFilesLines
2017-03-16Added test for #256.John MacFarlane2-0/+14
2017-03-13Better handling of \part in LaTeX.John MacFarlane1-0/+30
Closes #1905. Removed stateChapters from ParserState. Now we parse chapters as level 0 headers, and parts as level -1 headers. After parsing, we check for the lowest header level, and if it's less than 1 we bump everything up so that 1 is the lowest header level. So `\part` will always produce a header; no command-line options are needed.
2017-03-12Improved behavior of `auto_identifiers` when there are explicit ids.John MacFarlane1-0/+13
Previously only autogenerated ids were added to the list of header identifiers in state, so explicit ids weren't taken into account when generating unique identifiers. Duplicated identifiers could result. This simple fix ensures that explicitly given identifiers are also taken into account. Fixes #1745. Note some limitations, however. An autogenerated identifier may still coincide with an explicit identifier that is given for a header later in the document, or with an identifier on a div, span, link, or image. Fixing this would be much more difficult, because we need to run `registerHeader` before we have the complete parse tree (so we can't get a complete list of identifiers from the document by walking the tree). However, it might be worth issuing warnings for duplicate header identifiers; I think we can do that. It is not common for headers to have the same text, and the issue can always be worked around by adding explicit identifiers, if the user is aware of it.
2017-03-11Changed test case labeled 3384.md to 3348.md.John MacFarlane1-0/+0
The last commit referred to #3384, but should have closed #3348.
2017-03-11Markdown writer: fixed bugs in simple/multiline list output.John MacFarlane1-0/+15
* Previously we got overlong lists with `--wrap=none`. This is fixed. * Previously a multiline list could become a simple list (and would always become one with `--wrap=none`). Closes #3384.
2017-03-10Expand \newenvironment macros.John MacFarlane1-0/+12
Closes #987. Depends on still unreleased texmath 0.9.3.
2017-03-08Org reader: disallow tables on list marker linesAlbert Krewinkel1-1/+10
Fixes: #3499
2017-03-08Markdown writer: Avoid spurious blanklines at end of document...John MacFarlane3-8/+0
after tables and list, for example.
2017-03-08Markdown writer: ensure space before list at top level.John MacFarlane1-0/+13
Closes #3487.
2017-03-08Org reader: don't allow tables inside list items.John MacFarlane1-0/+9
Closes #3499.
2017-03-08Added test case for #3497.John MacFarlane1-0/+51
2017-03-07Markdown reader: Treat certain environments as inlineJohn MacFarlane1-0/+52
when they occur without space surrounding them. E.g. equation, math. This avoids incorrect vertical space around equations. Closes #3309. Closes #2171. See also rstudio/bookdown#358.
2017-03-06Markdown writer: better handling of tables with empty columns.John MacFarlane1-0/+16
E.g. an HTML table with two cells in the first row and one in the second (but no row/colspan). We now calculate the number of columns based on the longest row (or the length of aligns or widths). Closes #3337.
2017-03-06LaTeX reader: allow newpage, clearpage, pagebreak in inline contextsJohn MacFarlane1-0/+40
as well as block contexts. Closes #3494.
2017-03-05Markdown reader: fixed internal header links.John MacFarlane1-0/+9
Closes #2397. This patch also adds `shortcut_reference_links` to the list of mmd extensions.
2017-03-05Added a markdown abbrevation test case.John MacFarlane1-0/+31
2017-03-05Markdown reader: Fixed regression on left-biased union for metadata.John MacFarlane1-0/+15
When multiple YAML metadata blocks are used, and two define the same field, the value defined first takes precedence, according to the manual. This was changed briefly in ba3ee62323644134f2a5dd3277e3349d3681111a. This commit reverts to the original behavior and adds a test case.
2017-03-05Parse YAML metadata in a context that sees footnotes...John MacFarlane1-0/+19
defined in the body of the document. Closes #1279.
2017-03-04Fixed some loose ends in #1592.John MacFarlane1-0/+49
Added test cases. Fixed HTML reader to parse a span with class "smallcaps" as SmallCaps. Fixed Markdown writer to render SmallCaps as a native span when native spans are enabled.
2017-03-03OpenDocument writer: fixed dropped elements in some ordered lists.John MacFarlane1-0/+59
Closes #2434.
2017-03-03RST reader: support RST-style citations.John MacFarlane1-0/+18
The citations appear at the end of the document as a definition list in a special div with id `citations`. Citations link to the definitions. Added stateCitations to ParserState. Closes #853.
2017-03-02RST reader: Handle multiline cells in simple tables.John MacFarlane1-0/+48
Closes #1166.
2017-03-01Markdown writer: Fixed grid tables embedded in grid tables.John MacFarlane1-0/+32
Closes #2834.
2017-02-28RST reader: implemented implicit internal header links.John MacFarlane1-0/+45
Cloess #3475.
2017-02-26RST reader: support scale and align attributes of images.John MacFarlane1-0/+11
Closes #2662.
2017-02-25Added test case for variables/metadata in Markdown writer.John MacFarlane1-0/+15
2017-02-25LaTeX reader: allow hspace and vspace to count as raw block or inline.John MacFarlane1-0/+56
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-22When parsing raw LaTeX commands, include trailing space.John MacFarlane1-0/+6
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-21MediaWiki reader: ensure that list starts begin at left margin.John MacFarlane1-0/+58
Including when they're in tables or other list items. Closes #2606.
2017-02-21MediaWiki reader: fixed more table issues.John MacFarlane1-0/+109
Closes #2649.
2017-02-15Fix indirect hyperlink targets. Closes #512.John MacFarlane1-0/+41
2017-02-13LaTeX reader: properly handle column prefixes/suffixes.John MacFarlane1-0/+24
For example, in \begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}} each cell will be interpreted as if it has a `$` before its content and a `$` after (math mode).
2017-02-11Fixed small bug in RST list parsing.John MacFarlane1-0/+19
See #3432. Previously the parser didn't handle properly this case: * - a - b * - c - d
2017-02-06Removed --parse-raw and readerParseRaw.John MacFarlane1-0/+27
These were confusing. Now we rely on the +raw_tex or +raw_html extension with latex or html input. Thus, instead of --parse-raw -f latex we use -f latex+raw_tex and instead of --parse-raw -f html we use -f html+raw_html
2017-02-05Handle language in inline code with --listings.John MacFarlane1-0/+9
Closes #3422.
2017-02-04More smart escaping tests.John MacFarlane1-0/+20
2017-02-04Added first command test to cabal metadata and repo.John MacFarlane1-0/+25