forked from jgm/pandoc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lua: provide global
PANDOC_WRITER_OPTIONS
[API change]
Closes: jgm#5221
- Loading branch information
Showing
9 changed files
with
343 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{- | | ||
Module : Text.Pandoc.Filter.Environment | ||
Copyright : ©2020-2021 Albert Krewinkel | ||
License : GNU GPL, version 2 or above | ||
Maintainer : Albert Krewinkel <[email protected]> | ||
Stability : alpha | ||
Portability : portable | ||
Environment for pandoc filters. | ||
-} | ||
module Text.Pandoc.Filter.Environment | ||
( Environment (..) | ||
) where | ||
|
||
import Data.Default (Default (def)) | ||
import Text.Pandoc.Options (ReaderOptions, WriterOptions) | ||
|
||
-- | Environment in which a filter is run. This includes reader and | ||
-- writer options. | ||
data Environment = Environment | ||
{ envReaderOptions :: ReaderOptions | ||
, envWriterOptions :: WriterOptions | ||
} | ||
|
||
instance Default Environment where | ||
def = Environment def def |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.