claremacrae
fe1040d283
Added failing test for definition list output in dokuwiki writer ( #386 )
2013-08-23 08:26:07 +01:00
Florian Eitel
5f09cf7ff0
Write id for code block to label attr in latex when listing is used
...
The code:
~~~{#test}
asdf
~~~
gets compiled to html:
<pre id="test">
asdf
</pre>
So it is possible to link to the identifier `test`
But this doesn't happen on latex
When using the listings package (`--listings`) it is possible to set the
identifier using the `label=test` property:
\begin{lstlisting}[label=id]
hi
\end{lstlisting}
And this is exactly what this patch is doing.
Modified LaTeX Reader/Writer and added tests for this.
2013-08-22 20:15:36 +02:00
John MacFarlane
b1d08a8aa8
Merge branch 'altcite'
2013-08-20 22:00:39 -07:00
John MacFarlane
7048c130ec
Create Cite element even if no matching reference in the biblio.
...
* Add ??? as fallback text for non-resolved citations.
* Biblio: Put references (including a header at the end of
the document, if one exists) inside a Div with class "references".
This gives some control over styling of references, and allows
scripts to manipulate them.
* Markdown writer: Print markdown citation codes, and disable
printing of references, if `citations` extension is enabled.
NOTE: It would be good to improve what citeproc-hs does for
a nonexistent key.
2013-08-20 20:47:06 -07:00
John MacFarlane
e8ddcfd997
Scale LaTeX tables so they don't exceed columnwidth.
2013-08-19 16:03:22 -07:00
claremacrae
6cc284cc8e
Bullet and ordered lists now always simple in dokuwiki writer ( #386 )
2013-08-19 20:45:31 +01:00
claremacrae
883f119c87
Removed unnecessary line-break after hard break in dokuwiki writer ( #386 )
2013-08-19 08:09:52 +01:00
John MacFarlane
8d441af3da
Adjusted writers and tests for change in parsing of div/span.
...
Textile, MediaWiki, Markdown, Org, RST will emit raw HTML div tags for divs.
Otherwise Div and Span are "transparent" block containers.
2013-08-18 14:36:40 -07:00
claremacrae
288329044a
Stop plain text ** and __ becoming formatting in dokuwiki writer ( #386 )
2013-08-18 09:15:33 +01:00
claremacrae
b5b622f5b8
Stop plain text // becoming an italic marker in dokuwiki writer ( #386 )
...
When the original document had text containing //, this was previously
included, unchanged, in the dokuwiki output, and this interacted badly
with later, intended, formating text.
2013-08-18 08:57:32 +01:00
claremacrae
6d484bc55e
Treat inline code blocks like <code> instead of <tt> in dokuwiki writer ( #386 )
...
Done because I noticed that in the Autolinks section of writer.dokuwiki, the URL in inlined code was getting auto-linked, when it wasn't supposed to.
This also meant that any inline code examples that had text that looked like dokuwiki syntax could break the formatting of later text.
2013-08-18 08:13:34 +01:00
claremacrae
2a4bbe5d4f
Nasty hack to stop C comments in inline code becoming italics in dokuwiki writer ( #386 )
2013-08-17 22:28:07 +01:00
claremacrae
84c2c5f01d
Add more tests for dokuwiki writer ( #386 )
2013-08-17 19:03:58 +01:00
claremacrae
2ae2fcde2f
Add extra pair of test files for dokuwiki writer ( #386 )
...
I've found some incorrect behaviours with the dokuwiki output, for which
extra test cases will be needed - that aren't covered by the standard
pandoc test input files.
2013-08-17 18:53:01 +01:00
claremacrae
0961d49912
Fixed inlined code in dokuwiki writer ( #386 )
2013-08-17 12:34:05 +01:00
claremacrae
4c48433a2a
Don't add entities in <code> blocks in dokuwiki writer ( #386 )
2013-08-17 12:20:34 +01:00
claremacrae
573bd1b61b
Implement <code> blocks in dokuwiki writer ( #386 )
2013-08-17 11:20:51 +01:00
claremacrae
eb4fe5e82c
Implement table headings in dokuwiki writer ( #386 )
2013-08-17 08:48:29 +01:00
John MacFarlane
441a7aebf8
LaTeX writer: Avoid problem with footnotes in unnumbered headers.
...
Closes #940 .
Added test case.
2013-08-16 13:03:38 -07:00
John MacFarlane
309024971c
Updated tests for latest pandoc-types changes.
2013-08-16 12:25:21 -07:00
John MacFarlane
3e8bd8aa15
Updated for removed unMeta, unFormat in pandoc-types.
2013-08-14 23:24:45 -07:00
John MacFarlane
eb0c0b86ed
ODT/OpenDocument writer: Minor changes for ODF 1.2 conformance.
...
See #939 . We leave the nonconforming contextual-spacing attribute,
which is provided by LibreOffice itself and seems to be supported.
2013-08-11 17:13:46 -07:00
claremacrae
48645a4755
Initial implementation of tables in dokuwiki writer ( #386 )
...
Todo: alignment, and headings
2013-08-11 22:22:07 +01:00
John MacFarlane
6f736dfa75
Added Tests.Walk.
...
This verifies that walk and query match the generic traversals.
2013-08-10 19:04:15 -07:00
John MacFarlane
210d7b7bce
Updated tests for new Format.
2013-08-10 17:53:11 -07:00
John MacFarlane
cbfa932106
Adjustments for new Format newtype.
2013-08-10 17:24:54 -07:00
claremacrae
e5004bcff0
Implement strikeout in dokuwiki writer ( #386 )
2013-08-06 07:43:32 +01:00
John MacFarlane
4a84b78100
MediaWiki writer: Use native mediawiki tables instead of HTML.
...
Closes #720 .
2013-08-03 23:05:14 -07:00
claremacrae
b14b2d6a85
Implement footnotes in dokuwiki writer ( #386 )
2013-07-28 19:19:33 +01:00
claremacrae
b5f86a665d
Removed incorrect entity conversion in dokuwiki writer ( #386 )
2013-07-28 18:59:16 +01:00
claremacrae
51b8ce49f1
Implemented linebreaks in dokuwiki writer ( #386 )
2013-07-28 18:42:53 +01:00
Clare Macrae
5b04d063a1
Convert bullet and numbered lists in dokuwiki writer ( #386 )
2013-07-26 06:19:40 +01:00
Clare Macrae
97d81c8b10
Corrected part of the failing test for lists in dokuwiki writer ( #386 )
2013-07-26 05:10:05 +01:00
John MacFarlane
85cc140744
Textile reader: Improved handling of <pre>
blocks.
...
* Closed #927 (a bug in which `<pre>` in certain contexts was
not recognized as a code block).
* Remove internal HTML tags in code blocks, rather than printing
them verbatim.
* Parse attributes on `<pre>` tag for code blocks.
2013-07-25 09:45:23 -07:00
John MacFarlane
af5705308a
Test suite changes for new highlighting-kate version.
2013-07-23 20:31:49 -07:00
John MacFarlane
800c5490ec
LaTeX reader: Don't add spurious ", " to citation suffixes.
...
This is added when needed in Text.Pandoc.Biblio anyway.
2013-07-21 11:44:49 -07:00
Clare Macrae
c561be95a1
Add failing test for bullet and numbered lists in dokuwiki writer ( #386 )
2013-07-15 20:20:37 +01:00
Clare Macrae
18565e149a
Implement conversion of images in dokuwiki writer ( #386 )
2013-07-15 19:29:39 +01:00
Clare Macrae
b2a8731e32
Weak implementation of hyperlinks for dokuwiki ( #386 )
...
TODO Simplify the code
2013-07-15 09:35:04 +01:00
Alexander Kondratskiy
0b49f810f4
Fixing wrong numbered-list indentation in open document format
2013-07-14 14:33:58 -04:00
Clare Macrae
660fb24472
Implemented horizontal rule for dokuwiki ( #386 )
2013-07-14 15:03:40 +01:00
Clare Macrae
2afa4ec924
Implemented Emphasis (italic) and Strong (bold) for dokuwiki ( #386 )
2013-07-14 14:58:42 +01:00
Clare Macrae
a43e5983da
Implemented correct output of dokuwiki ( #386 )
2013-07-14 14:24:20 +01:00
Clare Macrae
7eded47bcd
Initial work to create dokuwiki writer ( #386 )
...
In this first version, all dokuwiki files are straight copies of the
media wiki counterparts.
2013-07-14 13:40:27 +01:00
John MacFarlane
35e2caa058
Updated a test whose output changed due to last commit.
2013-07-13 13:47:09 -07:00
John MacFarlane
9009a7e4a8
Markdown writer: Commas are okay in plain yaml scalars.
...
It's just commas with brackets that can cause problems.
2013-07-01 21:00:46 -07:00
John MacFarlane
e7a68fc7e8
Markdown writer: Render yaml title block fields in alpha order.
...
This makes the output predictable; previously it varied across
implementations.
2013-07-01 20:56:27 -07:00
John MacFarlane
19ad69b1c6
Improvements to yaml title block writer.
2013-07-01 16:28:34 -07:00
John MacFarlane
21a9b44609
Switched order of fields in yaml header (writer test).
2013-07-01 14:38:32 -07:00
John MacFarlane
2d46828b1c
Revert "Markdown writer: Don't include variables in metadata."
...
This reverts commit 0ec8573347
.
2013-07-01 14:17:04 -07:00