mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 10:16:32 +00:00
[API Change] Remove modules T.P.Writers.Custom and T.P.Readers.Custom.
The functions `writeCustom` and `readCustom` are available from module Text.Pandoc.Lua.
This commit is contained in:
committed by
John MacFarlane
parent
1a1e6457c6
commit
084e246126
@@ -606,7 +606,6 @@ library
|
||||
Text.Pandoc.Readers.Ipynb,
|
||||
Text.Pandoc.Readers.CSV,
|
||||
Text.Pandoc.Readers.RTF,
|
||||
Text.Pandoc.Readers.Custom,
|
||||
Text.Pandoc.Writers,
|
||||
Text.Pandoc.Writers.Native,
|
||||
Text.Pandoc.Writers.Docbook,
|
||||
@@ -628,7 +627,6 @@ library
|
||||
Text.Pandoc.Writers.RST,
|
||||
Text.Pandoc.Writers.Org,
|
||||
Text.Pandoc.Writers.AsciiDoc,
|
||||
Text.Pandoc.Writers.Custom,
|
||||
Text.Pandoc.Writers.Textile,
|
||||
Text.Pandoc.Writers.MediaWiki,
|
||||
Text.Pandoc.Writers.DokuWiki,
|
||||
|
||||
@@ -64,6 +64,7 @@ import Text.Pandoc.App.OutputSettings (OutputSettings (..), optToOutputSettings)
|
||||
import Text.Collate.Lang (Lang (..), parseLang)
|
||||
import Text.Pandoc.Filter (Filter (JSONFilter, LuaFilter), Environment (..),
|
||||
applyFilters)
|
||||
import Text.Pandoc.Lua (readCustom)
|
||||
import Text.Pandoc.PDF (makePDF)
|
||||
import Text.Pandoc.SelfContained (makeSelfContained)
|
||||
import Text.Pandoc.Shared (eastAsianLineBreakFilter,
|
||||
@@ -71,7 +72,6 @@ import Text.Pandoc.Shared (eastAsianLineBreakFilter,
|
||||
defaultUserDataDir, tshow, textToIdentifier)
|
||||
import Text.Pandoc.Writers.Shared (lookupMetaString)
|
||||
import Text.Pandoc.Readers.Markdown (yamlToMeta)
|
||||
import Text.Pandoc.Readers.Custom (readCustom)
|
||||
import qualified Text.Pandoc.UTF8 as UTF8
|
||||
#ifndef _WINDOWS
|
||||
import System.Posix.IO (stdOutput)
|
||||
|
||||
@@ -39,7 +39,7 @@ import Text.Pandoc.App.FormatHeuristics (formatFromFilePaths)
|
||||
import Text.Pandoc.App.Opt (Opt (..))
|
||||
import Text.Pandoc.App.CommandLineOptions (engines, setVariable)
|
||||
import Text.Pandoc.Highlighting (lookupHighlightingStyle)
|
||||
import Text.Pandoc.Writers.Custom (writeCustom)
|
||||
import Text.Pandoc.Lua (writeCustom)
|
||||
import qualified Text.Pandoc.UTF8 as UTF8
|
||||
|
||||
readUtf8File :: PandocMonad m => FilePath -> m T.Text
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
{- |
|
||||
Module : Text.Pandoc.Readers.Custom
|
||||
Copyright : Copyright (C) 2021-2022 John MacFarlane
|
||||
License : GNU GPL, version 2 or above
|
||||
|
||||
Maintainer : John MacFarlane <jgm@berkeley.edu>
|
||||
Stability : alpha
|
||||
Portability : portable
|
||||
|
||||
Supports custom parsers written in Lua which produce a Pandoc AST.
|
||||
-}
|
||||
module Text.Pandoc.Readers.Custom ( readCustom ) where
|
||||
import Text.Pandoc.Lua.Reader ( readCustom )
|
||||
@@ -1,14 +0,0 @@
|
||||
{-# LANGUAGE LambdaCase #-}
|
||||
{-# LANGUAGE OverloadedStrings #-}
|
||||
{- |
|
||||
Module : Text.Pandoc.Writers.Custom
|
||||
Copyright : 2012-2022 John MacFarlane,
|
||||
License : GNU GPL, version 2 or above
|
||||
Maintainer : John MacFarlane <jgm@berkeley.edu>
|
||||
|
||||
Conversion of 'Pandoc' documents to custom markup using
|
||||
a Lua writer.
|
||||
-}
|
||||
module Text.Pandoc.Writers.Custom ( writeCustom ) where
|
||||
|
||||
import Text.Pandoc.Lua.Writer ( writeCustom )
|
||||
Reference in New Issue
Block a user