Commit graph

1517 commits

Author SHA1 Message Date
John MacFarlane
8d4680bbfe DocBook reader: Handle blockquote with attribution. 2012-04-21 09:27:38 -07:00
John MacFarlane
255897b66a DocBook reader: Refactored with new function attrValue. 2012-04-20 11:01:54 -07:00
John MacFarlane
2ebfa88947 Stylistic changes to DocBook reader. 2012-04-20 10:40:44 -07:00
John MacFarlane
b6d530d876 Merge pull request #491 from mb21/patch-1
Added link, code and info elements to DocBook Reader
2012-04-20 10:30:34 -07:00
mb21
2f559597d5 Added link, code and info elements to DocBook Reader. 2012-04-19 15:45:59 +03:00
paul.rivier
411d54ce98 Textile reader quick clean-up and added support for LaTeX blocks and inlines. 2012-04-17 13:14:05 +02:00
John MacFarlane
5a244bb7b3 LaTeX reader: Make \label and \ref sensitive to --parse-raw.
IF --parse-raw is selected, these will be parsed as raw latex
inlines, rather than bracketed text.
2012-04-15 17:41:45 -07:00
John MacFarlane
8c181b528a Merge branch 'master' into docbookreader 2012-04-15 11:04:15 -07:00
John MacFarlane
7495d970b7 Mardkown writer: escape < and $. 2012-04-15 11:03:52 -07:00
John MacFarlane
4b2287920a DocBook reader: Added comment with list of docbook tags. 2012-04-15 10:07:24 -07:00
John MacFarlane
a0424d2f82 Merge branch 'master' into docbookreader 2012-04-14 22:53:08 -07:00
John MacFarlane
f40b2eb2e7 Fixed bug in fromEntities.
The previous version would turn "hi & low you know;" into "hi &".
2012-04-14 22:52:14 -07:00
John MacFarlane
e2c3a7b896 Implemented abstract, constant, type, etc. in docbook reader. 2012-04-14 22:16:20 -07:00
John MacFarlane
c77e0c5d77 Input files with .db extension treated as docbook by default. 2012-04-14 21:56:16 -07:00
John MacFarlane
f78801aa20 Implemented literal tag in docbook reader. 2012-04-14 21:55:14 -07:00
John MacFarlane
e5c4d7002e Implemented quoted in docbook reader. 2012-04-14 21:50:06 -07:00
John MacFarlane
f0a1760d41 Support orderedlist and ulink in docbook reader. 2012-04-14 21:43:07 -07:00
John MacFarlane
d556840fc8 Removed unneeded clause for "title" in docbook reader. 2012-04-14 21:33:23 -07:00
John MacFarlane
c747665ad7 Rudimentary support for programlisting in docbook reader. 2012-04-14 18:35:43 -07:00
John MacFarlane
7c3e2670a8 Implemented itemizedlist in docbook reader. 2012-04-14 18:31:28 -07:00
John MacFarlane
0fdb310425 Got metadata working in docbook reader. 2012-04-14 18:27:46 -07:00
John MacFarlane
3e062b5a21 Support superscript, subscript tags in docbook reader. 2012-04-14 17:59:40 -07:00
John MacFarlane
fe5704bebc Handle blockquote tag in docbook reader. 2012-04-14 17:51:29 -07:00
John MacFarlane
2198ac080b Got footnote working in docbook reader. 2012-04-14 17:46:17 -07:00
John MacFarlane
d7e8252ba6 Got section and sectN tags working in docbook reader. 2012-04-14 17:41:04 -07:00
John MacFarlane
9ecb9b5def DocBook reader improvements. 2012-04-14 17:33:56 -07:00
John MacFarlane
d339b29967 Added skeleton of basic docbook reader. 2012-04-14 16:44:21 -07:00
John MacFarlane
e37c4526b2 Markdown reader: Allow lists as list items.
So, for example:

1.  * x
    * y
2.  * z
    * w
2012-04-13 11:12:18 -07:00
John MacFarlane
d28ad2b0f1 Markdown: don't recognize references inside delimited code blocks.
Previously pandoc would produce incorrect results on this:

    ~~~
    [not a link]: /url
    ~~~

    [not a link]

because it would recognize "not a link" as a reference link
definition on the first pass.  This fix causes the first pass
to skip delimited code blocks.
2012-04-12 09:52:28 -07:00
John MacFarlane
dbbc932f24 Markdown writer: don't force delimited code blocks to be flush left.
Fixes bug with delimited code blocks inside lists etc.
2012-04-11 09:02:32 -07:00
John MacFarlane
a388024a57 Small simplification of blank parser in LaTeX reader. 2012-04-11 08:52:16 -07:00
John MacFarlane
a4388279de LaTeX reader: Parse 'dimension' arguments to unknown commands.
e.g. `\parindent0pt`
2012-04-10 18:56:08 -07:00
John MacFarlane
54c9d4348a LaTeX reader: Control sequences can't be followed by a letter.
This fixes a bug where `\begingroup` was parsed as `\begin`
followed by `group`.
2012-04-10 18:25:18 -07:00
John MacFarlane
66f8dc14b7 Docx writer: Fixed multi-paragraph list items.
Previously they each got a list marker.
Closes #457.
2012-04-07 17:08:52 -07:00
John MacFarlane
4fce1a63b1 LaTeX reader: Handle \bgroup, \egroup, \begingroup, \endgroup. 2012-04-07 16:16:43 -07:00
John MacFarlane
ecbe9f763c Textile reader: Implemented literal escapes with == and <notextile>.
Closes #473.
2012-04-05 13:52:12 -07:00
John MacFarlane
f25dcacedf LaTeX writer: don't use eurosym package unless document has a €. 2012-04-03 18:49:05 -07:00
John MacFarlane
0afd33e4c5 Markdown writer: don't replace empty alt in image with "image".
Previously `<img src="empty.png" alt=""/>` would be translated as
`![image](empty.png)`; now it becomes `![](empty.png)` as one might
naturally expect.
2012-04-03 18:28:08 -07:00
John MacFarlane
2f535ceda3 Avoid repeated id in section and header in HTML slides.
Previously pandoc would use the same id attribute for the
div or section and the header inside it; now the id is omitted
from the header if the div or section has it.
2012-03-29 11:10:10 -04:00
John MacFarlane
6b46c2dfd1 Properly handle citations nested in other inline elements.
Closes #460.

Note:  processBiblio is a mess.  It should be rewritten for
clarity and efficiency.
2012-03-27 12:16:02 -04:00
John MacFarlane
7bc4dc37b2 Added PDF metadata (title,author) in LaTeX standalone + PDF output.
Closes #459.
2012-03-25 12:10:43 -07:00
Greg Maslov
4a1ba8ce49 Oops! Forgot to munch whitespace / ignore body after directive. 2012-03-25 05:03:35 -04:00
Greg Maslov
618dc294f9 Add parsing support for the rST default-role directive. 2012-03-24 21:48:54 -04:00
John MacFarlane
3c4e1ff063 RST reader: allow :math:... even when not followed by blank or \.
This does not implement the complex rule described at
http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#inline-markup-recognition-rules,
but it should be good enough for most purposes.

Closes #453.
2012-03-24 16:11:56 -07:00
John MacFarlane
d7f2b5d0f5 RST reader: '\ ' is null, not escaped space. 2012-03-24 16:03:46 -07:00
John MacFarlane
9352750cb2 RST writer: Better handling of inline formatting.
* `hi*there*hi` now gets rendered properly as `hi\ *there*\ hi`
* Unnecessary '\ ' are avoided around :math:, :sub:, :sup:
* Implemented most of the rules in
  http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#inline-markup-recognition-rules,
  though some unnecessary '\ ' may be inserted when unicode quotes
  are used.
2012-03-24 15:53:57 -07:00
Peter Wang
d74f3e1f28 Texinfo writer: retain directories in image paths. 2012-03-21 09:20:30 +11:00
John MacFarlane
29c8f1554b PDF: Run latex at least two times.
This ensures that the PDFs will have hyperlinked bookmarks
(PDF table of contents that can be displayed in the sidebar).
2012-03-19 09:25:33 -07:00
John MacFarlane
1db909e49b Fixed bug parsing LaTeX tables with one column.
Thanks to Steven Solie for finding the bug.
2012-03-19 08:18:32 -07:00
John MacFarlane
60fb915351 Use {} around ctable caption. Closes #445. 2012-03-12 11:06:49 -07:00