Commit graph

86 commits

Author SHA1 Message Date
John MacFarlane
9c3f7688ee DocBook reader: Better handle elements inside code environments.
Of course, we can't include structure in the code block, but
this way we at least preserve the text.  Closes #1449.
2014-07-23 10:06:36 -07:00
John MacFarlane
59272e4d99 DocBook reader: Support <?asciidoc-br?>.
Closes #1236.

Note, this is a bit of a kludge, to work around the fact that xml-light
doesn't parse `<?asciidoc-br?>` correctly.  We preprocess the input,
replacing that instruction with `<br/>`, and then parse that as a line
break.  Other XML instructions are simply removed from the input stream.
2014-06-17 12:14:02 -07:00
John MacFarlane
ee2e769cd7 DocBook reader: Better treatment of formalpara.
We now emit the title (if present) as a separate paragraph
with boldface text.

Closes #1215.
2014-04-04 22:06:25 -07:00
John MacFarlane
e06aa97bb9 DocBook reader: set metadata "author" not "authors" 2014-04-04 21:39:08 -07:00
John MacFarlane
c5a0c7a819 Removed trailing whitespace. 2014-04-04 21:34:12 -07:00
John MacFarlane
c99ecf6cc5 DocBook reader: set "author" not "authors". 2014-04-04 21:33:16 -07:00
Matthew Pickering
1b930a9670 Added recognition of authorgroup element and releaseinfo element to DocBook reader.
Closes #1214
2014-04-04 21:00:49 -07:00
Matthew Pickering
b1c865ccc6 Converted current meta information parsing in DocBook to a more extensible version which is aware of the more recent meta representation. 2014-04-04 21:00:29 -07:00
Henry de Valence
3d70059a48 HLint: use fromMaybe
Replace uses of `maybe x id` with `fromMaybe x`.
2013-12-19 21:07:09 -05:00
John MacFarlane
826443926f Docbook reader: Avoid failure if tbody contains no tr or row elements. 2013-12-16 13:58:54 -08:00
John MacFarlane
416dad86dc DocBook reader: Handle numerical attributes starting with decimal.
Also use safeRead instead of read.
2013-10-22 12:34:18 -07:00
John MacFarlane
12e7ec4070 Added Text.Pandoc.Compat.TagSoupEntity.
This allows pandoc to compile with tagsoup 0.13.x.
Thanks to Dirk Ullrich for the patch.
2013-08-08 10:42:52 -07:00
John MacFarlane
8c48bd8feb Don't put the text of an autolink in Code font. 2013-01-06 20:51:51 -08:00
John MacFarlane
7818033df9 DocBook reader: Support title in "figure" element.
Closes #650.
2012-11-02 16:21:06 -07:00
John MacFarlane
6d7f0a1b81 Fixed whitespace errors. 2012-07-26 22:32:53 -07:00
John MacFarlane
acde1e82d2 Changed reader parameters from ParserState to ReaderOptions. 2012-07-25 22:35:41 -07:00
John MacFarlane
dc158768b9 Docbook reader: Added support for "bold" emphasis.
Thanks to mb21.
2012-06-26 19:41:34 -07:00
John MacFarlane
a5f71e5fad DocBook: support segmentedlist. 2012-05-12 18:34:15 -07:00
John MacFarlane
6dfaf43f3e DocBook reader: Support simplelist, member. 2012-05-12 13:21:13 -07:00
John MacFarlane
0d3c7b5204 Don't include non-language classes for code blocks. 2012-05-12 12:33:51 -07:00
John MacFarlane
2c04d0b2bf DocBook reader: Recognize example as block element. 2012-05-12 12:33:49 -07:00
John MacFarlane
1c26f2c516 DocBook reader: Promote level 0 headers to 1 even if dbBook not set. 2012-05-12 12:24:26 -07:00
John MacFarlane
9d44dc3887 DocBook reader: Support bridgehead. 2012-05-12 12:17:36 -07:00
John MacFarlane
3d15d4c668 DocBook reader: only use language classes for inline code. 2012-05-12 11:35:20 -07:00
John MacFarlane
199c9de654 DocBook reader: Better handling tags that can have inline or block content. 2012-05-12 11:31:17 -07:00
John MacFarlane
89fa0e4a08 DocBook reader: computeroutput is an inline tag, not block. 2012-05-12 11:21:23 -07:00
John MacFarlane
c844634757 DocBook reader: Support bibliomixed tag. 2012-05-11 20:35:19 -07:00
John MacFarlane
02fa1050b0 DocBook reader: Support link tag with no content. 2012-05-11 20:27:28 -07:00
John MacFarlane
e1e6505abe DocBook reader: print ? for xref tag. 2012-05-11 20:20:53 -07:00
John MacFarlane
d46d2000f4 DocBook reader: Support uri tag. 2012-05-11 20:16:39 -07:00
John MacFarlane
5dfcf004b4 DocBook reader: Use ALLCAPS for unknown entities. 2012-05-11 20:14:11 -07:00
John MacFarlane
de27dbc0f8 DocBook reader. Handle block elements inside paragraphs. 2012-05-11 20:08:26 -07:00
John MacFarlane
b4b5642ac7 DocBook reader: support more elements. 2012-05-10 23:58:13 -07:00
John MacFarlane
023bb2bb45 DocBook reader: Implemented glossary, simplified sect. 2012-05-10 21:27:16 -07:00
John MacFarlane
523acadd5b DocBook reader: Skip index. 2012-05-10 20:11:07 -07:00
John MacFarlane
84d213baff DocBook reader: Skip toc tags. 2012-05-10 19:56:08 -07:00
John MacFarlane
dab6a36585 DocBook reader: Supported bibliography, bibliodiv. 2012-05-10 19:50:51 -07:00
John MacFarlane
15ef1a1a48 DocBook reader: Support language attribute on inline code. 2012-05-10 10:24:07 -07:00
John MacFarlane
79e83749bf DocBook reader: Support language attribute in programlisting. 2012-05-10 10:10:24 -07:00
John MacFarlane
4d9a1324ae DocBook reader: areaspec, area, areaset 2012-05-10 10:10:20 -07:00
John MacFarlane
d63bfb4bc5 DocBook reader: Support prompt, parameter. 2012-05-10 09:12:40 -07:00
John MacFarlane
bff02dd369 DocBook reader: Support 'optional' tag. 2012-05-10 09:10:25 -07:00
John MacFarlane
cb1096b75f DocBook reader: Support subtitle, simpara. 2012-05-10 09:01:38 -07:00
John MacFarlane
a408ce5fd7 DocBook reader: Add attribute for "option" code inline. 2012-05-09 11:01:10 -07:00
John MacFarlane
83d0e7e4bd DocBook reader: Support computeroutput, literallayout. 2012-05-09 10:46:34 -07:00
John MacFarlane
87de361cdc DocBook reader: More improvements, passes tests. 2012-05-09 10:34:37 -07:00
John MacFarlane
4f8c536de0 DocBook reader: More improvements, more tests pass. 2012-05-08 23:25:34 -07:00
John MacFarlane
8ba8a720ed DocBook reader: Improved def lists with multiple defs. 2012-05-08 22:18:24 -07:00
John MacFarlane
b1cba4ae8e DocBook reader: Fixed headers for headerless table. 2012-05-08 21:44:46 -07:00
John MacFarlane
ef5c7fb4b6 DocBook reader: Trim definition list terms. 2012-05-08 21:25:51 -07:00