Age | Commit message (Collapse) | Author | Files | Lines |
|
This fixes a bug in 2.0.4, whereby pandoc could not
read the theme files generated with `--print-highlight-style`.
It also fixes some CSS issues involving line numbers.
Highlighted code blocks are now enclosed in a div with class
sourceCode.
Highlighting CSS no longer sets a generic color for pre
and code; we only set these for class `sourceCode`.
This will close #4133 and #4128.
|
|
The release hslua 0.9.3 contains a new function which makes using
Haskell functions as package loaders much easier.
|
|
This fixes a bug in parsing tags with `&` following.
Closes #4094. Closes #4088.
|
|
Closes #4103 (wrong color of unmarked code text when
numerLines is used).
|
|
|
|
The `text` module is preloaded in lua. The module contains some UTF-8
aware string functions, implemented in Haskell. The module is loaded on
request only, e.g.:
text = require 'text'
function Str (s)
s.text = text.upper(s.text)
return s
end
|
|
|
|
|
|
|
|
|
|
The line identifiers are built using the code block's identifier
as a prefix. If the code block has null identifier, we use
"cb1", "cb2", etc.
Closes #4031.
|
|
This prevents the problem with extra space around highlighted
code blocks (closes #3996).
Note that we no longer put an enclosing div around highlighted
code blocks. The pre is the outer element, just as for unhighlighted
blocks.
|
|
|
|
Closes #3806.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Depends on skylighting 0.3.5.
|
|
|
|
|
|
|
|
with empty headers.
|
|
hslua no longer provides lua stack instances for Int and Double, the
necessary instances are added to the Custom writer and the lua filtering
system.
|
|
|
|
|
|
|
|
|
|
|
|
This uses bindings to GitHub's fork of cmark, so it should parse
gfm exactly as GitHub does (excepting certain postprocessing
steps, involving notifications, emojis, etc.).
* Added Text.Pandoc.Readers.GFM (exporting readGFM)
* Added Text.Pandoc.Writers.GFM (exporting writeGFM)
* Added `gfm` as input and output forma
Note that tables are currently always rendered as HTML
in the writer; this can be improved when CMarkGFM supports
tables in output.
|
|
|
|
|
|
|
|
Supporting two completely different libraries for fetching
from URLs makes it difficult to trap errors, because of
different error types expected from the libraries.
There's no clear reason not to build with these https-capable
libraires.
|
|
This should fix the build failure on travis.
|
|
See https://github.com/haskell-foundation/foundation/issues/238
for the bug on Windows with 0.0.6.
|
|
|
|
Pushing values to the lua stack via custom functions is faster and more
flexible.
|
|
foundation-0.0.4 from lts-8.8 does not build on FreeBSD
|
|
This gives us a newer verison of executable-path, which we need
for FreeBSD.
|
|
This means we no longer need language.dtd when loading
custom highlighting definitions.
See #3334.
|
|
The 0.5.0 release of hslua fixes problems with lua C modules on linux.
The signature of the `loadstring` function changed, so a compatibility
wrapper is introduced to allow both 0.4.* and 0.5.* versions to be used.
|
|
|
|
* Add `--lua-filter` option. This works like `--filter` but takes pathnames of special lua filters and uses the lua interpreter baked into pandoc, so that no external interpreter is needed. Note that lua filters are all applied after regular filters, regardless of their position on the command line.
* Add Text.Pandoc.Lua, exporting `runLuaFilter`. Add `pandoc.lua` to data files.
* Add private module Text.Pandoc.Lua.PandocModule to supply the default lua module.
* Add Tests.Lua to tests.
* Add data/pandoc.lua, the lua module pandoc imports when processing its lua filters.
* Document in MANUAL.txt.
|
|
|
|
|
|
|