Movatterモバイル変換


[0]ホーム

URL:


pandoc-3.6.4: Conversion between markup formats
CopyrightCopyright (C) 2006-2024 John MacFarlane
LicenseGNU GPL, version 2 or above
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Stabilityalpha
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Pandoc

Contents

Description

This helper module exports the main writers, readers, and datastructure definitions from the Pandoc libraries.

A typical application will chain together a reader and a writerto convert strings from one format to another. For example, thefollowing simple program will act as a filter converting markdownfragments to reStructuredText, using reference-style links instead ofinline links:

module Main whereimport Text.Pandocimport Data.Text (Text)import qualified Data.Text.IO as TmdToRST :: Text -> IO TextmdToRST txt = runIOorExplode $  readMarkdown def txt  >>= writeRST def{ writerReferenceLinks = True }main :: IO ()main = do  T.getContents >>= mdToRST >>= T.putStrLn
Synopsis

Definitions

moduleText.Pandoc.Definition

Generics

moduleText.Pandoc.Generic

Options

moduleText.Pandoc.Options

Logging

moduleText.Pandoc.Logging

Typeclass

moduleText.Pandoc.Class

Internal data files

moduleText.Pandoc.Data

Error handling

moduleText.Pandoc.Error

Readers: convertingto Pandoc format

moduleText.Pandoc.Readers

Writers: convertingfrom Pandoc format

moduleText.Pandoc.Writers

Rendering templates and default templates

moduleText.Pandoc.Templates

Localization

setTranslations ::PandocMonad m =>Lang -> m ()Source#

Select the language to use withtranslateTerm. Note that this does not read a translation file; that is only done the first timetranslateTerm is used.

translateTerm ::PandocMonad m =>Term -> mTextSource#

Get a translation from the current term map. Issue a warning if the term is not defined.

Version information

pandocVersion ::VersionSource#

Version number of pandoc library.

pandocVersionText ::TextSource#

Text representation of the library's version number.

Produced byHaddock version 2.29.1


[8]ページ先頭

©2009-2025 Movatter.jp