John MacFarlane
8df380486c
Added --number-from
option and writerNumberFrom
.
...
These still aren't hooked up to anything in the writers.
2013-02-21 21:40:06 -08:00
John MacFarlane
c5f1a8ad2d
Added --default-image-extension
and readerDefaultImageExtension
.
...
Note: Currently this only affects the markdown reader.
2013-02-05 20:08:00 -08:00
John MacFarlane
49820d5b51
Implemented Ext_link_attributes in markdown reader.
...
Also simplified source URL and link title parsers.
2013-01-16 11:25:17 -08:00
John MacFarlane
4926645578
Implemented Ext_mmd_header_identifiers in markdown reader.
2013-01-16 09:17:20 -08:00
John MacFarlane
923204d553
Options: Added multimarkdownExtensions.
...
Also added 'markdown_mmd' as input/output option.
2013-01-16 08:52:54 -08:00
John MacFarlane
eebed6bc48
Added writerHtmlQTags
and --html-q-tags
option.
...
The previous default was to use `<q>` tags in HTML5.
But `<q>` tags are also valid HTML4, and they are not very
robust in HTML5. Some user agents don't support them,
and some CSS resets prevent pandoc's quotes CSS from working
properly (e.g. bootstrap). It seems a better default just
to insert quote characters, but the option is provided for
those who have gotten used to using `<q>` tags.
2013-01-15 18:50:36 -08:00
John MacFarlane
bf3a911a1c
Changed Ext_autolink_urls -> Ext_autolink_bare_uris.
...
Added tests.
2013-01-15 12:44:50 -08:00
John MacFarlane
0ef24d1518
Added Ext_implicit_figures.
...
No code to hook this in yet.
2013-01-14 17:08:56 -08:00
John MacFarlane
6b5302e063
Markdown reader: Support RST-style line blocks.
...
This depends on the new Ext_line_blocks extension.
2013-01-13 12:34:18 -08:00
John MacFarlane
97a3cb2e86
Options: Added githubMarkdownExtensions.
...
Added github_markdown as input/output option.
2013-01-11 10:11:53 -08:00
John MacFarlane
f8db21fa16
Options: Added phpMarkdownExtraExtensions.
...
And added markdown_phpextra input/output format.
2013-01-10 22:39:47 -08:00
John MacFarlane
23ab5ffcb0
Implemented Ext_header_attributes.
...
This allows explicit attributes to be put on headers, using
a syntax like that for code blocks:
{#id .class .class k=v k=v}
2013-01-10 20:32:53 -08:00
John MacFarlane
1a7686ad79
Ext_header_identifiers -> Ext_auto_identifiers.
2013-01-10 19:58:39 -08:00
John MacFarlane
0cc9504796
EPUB changes.
...
* Epub writer now exports writeEPUB, not writeEPUB2 and writeEPUB3.
* Options now exports EPUBVersion
* WriterOptions now includes writerEpubVersion.
2013-01-05 13:00:12 -08:00
John MacFarlane
c45ae571cc
Changed --toc-level to --toc-depth.
2013-01-05 12:03:05 -08:00
John MacFarlane
7c10e57997
Changed --epub-toc-level
to --toc-level
.
...
Also writerEpubTOCLevel -> writerTOCLevel.
So far this is only implemented in the EPUB writer.
2013-01-05 11:36:55 -08:00
John MacFarlane
e91bae4f5b
Renamed writerEPUBMetadata -> writerEpubMetadata.
...
API change for consistency.
2013-01-04 22:41:27 -08:00
John MacFarlane
30361308e7
Added --epub-chapter-level
and --epub-toc-level
options.
...
Also added writerEpubChapterLevel and writerEpubTOCLevel fields
to WriterOptions.
2013-01-04 22:29:41 -08:00
John MacFarlane
c435e9cda7
Implemented Ext_header_identifiers
, Ext_implicit_header_references
.
...
Now by default pandoc will act as if link references have been defined
for all headers. So, you can do this:
# My header
Link to [My header].
Another link to [it][My header].
Closes #691 .
2013-01-03 20:35:01 -08:00
John MacFarlane
a35b718e7d
Re-added Read instance for ReaderOptions.
...
Requires dev version of citeproc-hs.
2012-10-14 22:14:15 -07:00
John MacFarlane
b5dd06d303
Moved bibliography processing into readers.
...
Previously this was done in src/pandoc.hs, which made it difficult
for library users.
* Removed readerCitations in ReaderOptions.
* Added readerReferences and readerCitationStyle to ReaderOptions.
* Moved use of processBiblio from main program to the
markdown and LaTeX readers.
2012-10-13 11:33:55 -07:00
John MacFarlane
606b5e8ed4
Removed Ext_monospace_autolinks.
2012-09-27 15:01:00 -07:00
John MacFarlane
bae39e77a8
Added Ext_autolink_urls.
2012-09-27 13:43:48 -07:00
John MacFarlane
15a8192b84
Renamed Ext_autolink_code_spans to Ext_monospace_autolinks.
2012-09-27 13:33:14 -07:00
John MacFarlane
885ef2072f
Make --id-prefix affect footnote IDs in markdown writer.
...
Closes #614 .
2012-09-25 20:26:38 -07:00
John MacFarlane
dc8e5970bf
Implemented Ext_backtick_code_blocks.
...
This is the variant github prefers.
2012-08-21 20:11:10 -07:00
John MacFarlane
dc6a133dbf
Added Ext_fenced_code_attributes.
2012-08-21 19:35:36 -07:00
John MacFarlane
b985d33406
Changed nomenclature, delimited -> fenced code blocks.
2012-08-21 19:21:51 -07:00
John MacFarlane
7b34dd8dd1
Added Ext_abbrevations for PHP markdown style abbreviation keys.
...
Note: pandoc does not have an abbreviation element (yet) and
so currently when this extension is enabled, it just causes
pandoc to skip the abbrevation keys.
2012-08-19 11:15:32 -07:00
John MacFarlane
c7bd034fa8
Added comments in Options.
2012-08-16 19:57:03 -07:00
John MacFarlane
27304513f6
Added Ext_raw_html extension.
...
Closes #556 -- you can now specify markdown-raw_html as your
input format. (Read: markdown minus raw_html.)
2012-08-12 22:04:23 -07:00
John MacFarlane
e8e8468d69
Implemented Ext_mmd_title_block in markdown reader & writer.
2012-08-12 19:27:13 -07:00
John MacFarlane
6f3e228bd9
Mardkown reader: Implemented Ext_markdown_attribute.
2012-08-11 19:44:23 -07:00
John MacFarlane
872fd2fb9c
Revert "Implemented Ext_markdown_attribute."
...
This reverts commit 78d3a0fb9d
.
2012-08-11 16:36:54 -07:00
John MacFarlane
78d3a0fb9d
Implemented Ext_markdown_attribute.
...
This adds markdown=1 to block tags.
2012-08-11 15:04:12 -07:00
John MacFarlane
eb4d522a56
Options and documentation for backslash tex math options.
...
Ext_tex_math_single_backslash and Ext_tex_math_double_backslash.
Still need to code in reader.
2012-08-10 21:57:54 -07:00
John MacFarlane
417cde38af
Changed Ext_tex_math to Ext_tex_math_dollars.
2012-08-10 21:52:18 -07:00
John MacFarlane
88804c89bb
Removed refs to Ext_header_identifiers in comments.
2012-08-10 21:48:05 -07:00
John MacFarlane
dfa4b76630
Changes to literate haskell options.
...
- Removed writerLiterateHaskell from WriterOptions.
- Removed readerLiterateHaskell from ReaderOptions.
- Added Ext_literate_haskell to Extensions. Test for this
instead of the above.
- Removed failUnlessLHS from Shared.
Note: At this point, +lhs and .lhs extension no longer has any effect.
Need to fix.
2012-08-08 23:18:19 -07:00
John MacFarlane
f9f6e5ec6f
Made pandocExtensions default for reader/writer options.
2012-08-07 13:17:30 -07:00
John MacFarlane
8a101cffe3
Support hard_line_breaks markdown extension.
...
* Added Ext_hard_line_breaks.
* Added section in README on non-pandoc extensions.
* Exported pandocExtensions and strictExtensions in Text.Pandoc.Options.
Closes #514 .
2012-08-06 22:14:35 -07:00
John MacFarlane
eb99b7e7b9
Commented out extensions that don't yet do anything.
2012-07-27 19:04:11 -07:00
John MacFarlane
7905feac3f
Removed deprecated writerXeTeX.
2012-07-27 16:01:17 -07:00
John MacFarlane
f0b9d52fd3
Markdown reader: Added sensitivity to Ext_example_lists.
2012-07-27 16:00:27 -07:00
John MacFarlane
b98219773b
Replaced writerStrict with writerExtensions in WriterOptions.
...
Still have not implemented individual tests for all the extensions
in the markdown writer.
2012-07-27 09:18:51 -07:00
John MacFarlane
00dc1e715e
Moved WriterOptions and associated types Shared -> Options.
2012-07-26 22:59:56 -07:00
John MacFarlane
33fdea67b5
Use readerExtensions instead of readerStrict in readers.
...
Test individually for the extensions.
2012-07-26 20:29:08 -07:00
John MacFarlane
631e5c16fc
pandoc: Set readerExtensions instead of readerStrict.
2012-07-26 18:56:19 -07:00
John MacFarlane
acde1e82d2
Changed reader parameters from ParserState to ReaderOptions.
2012-07-25 22:35:41 -07:00
John MacFarlane
9b5d2031c7
Restored stateStandalone as readerStandalone.
...
It is indeed needed by the RST reader.
2012-07-25 22:05:06 -07:00