John MacFarlane
8ec03cfc87
HTML writer: Removed unused parameter in dimensionsToAttributeList.
2017-05-26 10:21:55 +02:00
John MacFarlane
cb7b0a6985
Allow em for image height/width in HTML, LaTeX.
...
- Export `inEm` from ImageSize [API change].
- Change `showFl` and `show` instance for `Dimension` so
extra decimal places are omitted.
- Added `Em` as a constructor of `Dimension` [API change].
- Allow `em`, `cm`, `in` to pass through without conversion
in HTML, LaTeX.
Closes #3450 .
2017-05-25 22:48:27 +02:00
John MacFarlane
708973a33a
Added spaced_reference_links
extension.
...
This is now the default for pandoc's Markdown.
It allows whitespace between the two parts of a
reference link: e.g.
[a] [b]
[b]: url
This is now forbidden by default.
Closes #2602 .
2017-05-25 12:57:31 +02:00
John MacFarlane
650e1ac1fd
Docx writer: Use Table rather than "Table Normal" for table style.
...
"Table Normal" is the default table style and can't be modified.
Closes #3275 , further testing welcome.
2017-05-25 12:11:46 +02:00
John MacFarlane
e34131502a
Update command tests to include stderr output.
2017-05-25 11:52:09 +02:00
John MacFarlane
895866222c
Test.Command: put stderr output at front, so it can be tested.
2017-05-25 11:51:50 +02:00
John MacFarlane
8f2c803f97
Markdown reader: warn for notes defined but not used.
...
Closes #1718 .
Parsing.ParserState: Make stateNotes' a Map, add stateNoteRefs.
2017-05-25 11:34:51 +02:00
John MacFarlane
41db9e826e
MediaWiki reader: don't do curly quotes inside <tt>
contexts.
...
Even if `+smart`.
See #3585 .
2017-05-25 09:35:25 +02:00
John MacFarlane
e6f4636a2c
MediaWiki reader: Make smart double quotes depend on smart
extension.
...
Closes #3585 .
2017-05-25 09:19:34 +02:00
John MacFarlane
b9a30ef959
Markdown reader: fixed smart quotes after emphasis.
...
E.g. in
*foo*'s 'foo'
Closes #2228 .
2017-05-24 23:23:08 +02:00
John MacFarlane
8f718b0883
LaTeX reader: Fixed failures on \ref{}, \label{} with +raw_tex
.
...
Now these commands are parsed as raw if `+raw_tex`;
otherwise, their argument is parsed as a bracketed string.
2017-05-24 23:04:49 +02:00
John MacFarlane
00fffefb36
Makefile: fixed filename for windows package download.
2017-05-24 22:54:16 +02:00
John MacFarlane
01a15e8c50
Revert "appveyor.yml: don't use matrix."
...
This reverts commit d4ccd1e001
.
2017-05-24 22:54:11 +02:00
John MacFarlane
bc6aac7b47
Parsing: Provide parseFromString'.
...
This is a verison of parseFromString specialied to
ParserState, which resets stateLastStrPos at the end.
This is almost always what we want.
This fixes a bug where `_hi_` wasn't treated as emphasis in
the following, because pandoc got confused about the
position of the last word:
- [o] _hi_
Closes #3690 .
2017-05-24 22:41:47 +02:00
John MacFarlane
d4ccd1e001
appveyor.yml: don't use matrix.
2017-05-24 22:06:40 +02:00
John MacFarlane
1288a50380
LaTeX reader: parse tikzpicture as raw verbatim environment...
...
if `raw_tex` extension is selected.
Otherwise skip with a warning.
This is better than trying to parse it as text!
Closes #3692 .
2017-05-24 21:46:53 +02:00
John MacFarlane
19d3a2bbe5
Logging: Made SkippedContent WARNING not INFO.
2017-05-24 21:46:43 +02:00
John MacFarlane
7174776c19
HTML reader: Add details
tag to list of block tags.
...
Closes #3694 .
2017-05-24 12:11:12 +02:00
John MacFarlane
b847f65e84
appveyor: turn off 64-bit build for now.
2017-05-24 11:54:54 +02:00
John MacFarlane
7fba4e6a9c
appveyor.yml: added fast_finish, fails if either job fails.
2017-05-24 11:41:05 +02:00
Marc Schreiber
b1d0c61f2d
Add another test to make sure that textcolor parsing is working in the inside of a paragraph
2017-05-23 17:36:27 -03:00
Marc Schreiber
29a4bdc681
Add suggestions of @jgm: parse bracketed stuff as inlines
2017-05-23 17:31:42 -03:00
John MacFarlane
5844af67b4
RST reader: reformatting (code line length).
2017-05-23 21:00:51 +02:00
keiichiro shikano
c0c54b7906
RST Reader: parse list table directive ( #3688 )
...
Closes #3432 .
2017-05-23 20:53:04 +02:00
John MacFarlane
8edeaa9349
Fixed handling of soft hyphen (0173) in docx writer.
...
Closes #3691 .
2017-05-23 16:58:24 +02:00
John MacFarlane
66fa38ed1c
Shared.isURI: allow uppercase versions of known schemes.
2017-05-23 09:49:56 +02:00
Albert Krewinkel
5debb0da0f
Shared: Provide custom isURI that rejects unknown schemes [isURI]
...
We also export the set of known `schemes`.
The new function replaces the function of the same name
from `Network.URI`, as the latter did not check whether a scheme is
well-known. E.g. MediaWiki wikis frequently feature pages with names
like `User:John`. These links were interpreted as URIs, thus turning
internal links into global links. This is prevented by also checking
whether the scheme of a URI is frequently used (i.e. is IANA registered
or an otherwise well-known scheme).
Fixes : #2713
Update set of well-known URIs from IANA list
All official IANA schemes (as of 2017-05-22) are included in the set of
known schemes. The four non-official schemes doi, isbn, javascript, and
pmid are kept.
2017-05-23 09:48:11 +02:00
John MacFarlane
4d1e9b8e41
Let --eol
take native
as an argument.
...
Add `Native` to the `LineEnding` type.
Make `optEol` a `Native` rather than `Maybe Native`.
2017-05-22 10:15:03 +02:00
Alexander Krotov
30a3deadcc
Move indentWith to Text.Pandoc.Parsing ( #3687 )
2017-05-22 10:10:15 +02:00
John MacFarlane
aa1e39858d
Text.Pandoc.App: ToJSON and FromJSON instances for Opts.
...
This can be used e.g. to pass options via web interface,
such as trypandoc.
2017-05-21 11:42:50 +02:00
John MacFarlane
8c1b81bbef
Finished implemtation of --resource-path
.
...
* Default is just working directory.
* Working directory must be explicitly specifide if
`--resource-path` option is used.
2017-05-21 09:02:01 +02:00
John MacFarlane
6a7f980247
PDF: Got --resource-path working with pdf output.
...
See #852 .
2017-05-20 23:46:51 +02:00
John MacFarlane
d109c8be8f
PDF: better error message for non-converted svg images.
2017-05-20 23:24:20 +02:00
Alexander Krotov
753d5811e2
RST reader: make use of anyLineNewline ( #3686 )
2017-05-20 23:14:08 +02:00
Marc Schreiber
03cb05f4c6
Improve SVG image size code.
...
The old code made some unwise assumptions about
how the svg file would look.
See #3580 .
2017-05-20 23:09:08 +02:00
John MacFarlane
5c44fd554f
PDF: Refactoring, makePDF is now in PandocIO [API change].
2017-05-20 22:42:50 +02:00
John MacFarlane
fd6e65b00f
Added --resource-path=SEARCHPATH
command line option.
...
SEARCHPATH is separated by the usual character,
depending on OS (: on unix, ; on windows).
Note: This does not yet work for PDF output, because the
routine that creates PDFs runs outside PandocMonad.
(This has to do with its use of inTemporaryDirectory and
its interaction with our exceptions.)
The best solution would be to figure out how to move the
PDF creation routines into PandocMonad. Second-best,
just pass an extra parameter in?
See #852 .
2017-05-20 21:47:10 +02:00
John MacFarlane
93eaf33e6e
SelfContained: handle @import with quoted string.
2017-05-20 17:32:46 +02:00
John MacFarlane
8d4fbe6a2a
SelfContained: fixed problem with embedded fonts.
...
Closes #3629 .
However, there is still room for improvement.
`@import` with following media declaration is not
handled.
Also `@import` with a simple filename (rather than
`url(...)` is not handled.
2017-05-20 17:09:47 +02:00
John MacFarlane
ca77f0a95e
RST writer: add empty comments when needed...
...
to avoid including a blocquote in the indented content
of a preceding block.
Closes #3675 .
2017-05-19 21:05:15 +02:00
John MacFarlane
95c37d1e1f
appveyor.yml - really fixed artifacts.
2017-05-19 18:40:14 +02:00
John MacFarlane
6c86e96f9b
appveyor.yml - fix artifacts.
2017-05-19 18:15:49 +02:00
John MacFarlane
8560a693bb
appveyor.yml: added comment with instructions to reset build cache.
2017-05-19 16:22:45 +02:00
John MacFarlane
d487176b58
Revert "appveyor.yml - reset cache when appveyor.yml changes."
...
This reverts commit 8ac2675c27
.
2017-05-19 16:21:35 +02:00
John MacFarlane
8ac2675c27
appveyor.yml - reset cache when appveyor.yml changes.
2017-05-19 16:18:12 +02:00
John MacFarlane
7059f14982
Fixed appveyor.yml.
2017-05-19 15:17:08 +02:00
John MacFarlane
aa6a0bf192
appveyor.yml updates.
...
* Don't try to cache ghc, it's too big.
* Build both 32 and 64 bit versions.
2017-05-19 15:12:56 +02:00
John MacFarlane
0b34f80ffa
appveyor.yml. Fix WINBIN path.
2017-05-19 11:56:44 +02:00
John MacFarlane
c5b1076302
appveyor.yml - put stack executable in stack_root.
2017-05-19 10:42:21 +02:00
John MacFarlane
48d23766a4
appveyor.yml fixes.
2017-05-19 10:29:50 +02:00