php pandoc,pandoc: Universal markup converter

Pandoc

pandoc.svg?label=current+release

pandoc.svg?label=hackage

pandoc.svg

lts

master.svg?label=travis+build

nvqs4ct090igjiqc?svg=true

license-GPLv2+-lightgray.svg

pandoc-discuss-red.svg?style=social

The universal markup converter

Pandoc is a Haskell library for converting from

one markup format to another, and a command-line tool that uses this

library. It can convert from

commonmark (CommonMark Markdown)

docbook (DocBook)

epub (EPUB)

gfm (GitHub-Flavored

Markdown),

or the deprecated and less accurate markdown_github; use

markdown_github only if you need extensions

not supported in gfm.

html (HTML)

jats (JATS XML)

json (JSON version of native AST)

latex (LaTeX)

markdown_mmd

(MultiMarkdown)

markdown_phpextra (PHP Markdown

Extra)

markdown_strict (original unextended

Markdown)

muse (Muse)

native (native Haskell)

odt (ODT)

opml (OPML)

textile (Textile)

vimwiki (Vimwiki)

It can convert to

asciidoc (AsciiDoc)

beamer (LaTeX beamer slide show)

commonmark (CommonMark Markdown)

context (ConTeXt)

docbook or docbook4 (DocBook 4)

docbook5 (DocBook 5)

epub or epub3 (EPUB v3 book)

epub2 (EPUB v2)

gfm (GitHub-Flavored

Markdown),

or the deprecated and less accurate markdown_github; use

markdown_github only if you need extensions

not supported in gfm.

html or html5 (HTML,

i.e. HTML5/XHTML polyglot

markup)

html4 (XHTML 1.0 Transitional)

jats (JATS XML)

json (JSON version of native AST)

latex (LaTeX)

markdown_mmd

(MultiMarkdown)

markdown_phpextra (PHP Markdown

Extra)

markdown_strict (original unextended

Markdown)

muse (Muse),

native (native Haskell),

opml (OPML)

opendocument (OpenDocument)

plain (plain text),

pptx

(PowerPoint

slide show)

textile (Textile)

slideous (Slideous HTML

and JavaScript slide show)

slidy (Slidy HTML and

JavaScript slide show)

dzslides (DZSlides HTML5 +

JavaScript slide show),

revealjs (reveal.js HTML5 +

JavaScript slide show)

s5 (S5 HTML and JavaScript

slide show)

the path of a custom lua writer, see Custom

writers below

Pandoc can also produce PDF output via LaTeX, Groff ms, or HTML.

Pandoc’s enhanced version of Markdown includes syntax for tables,

definition lists, metadata blocks, footnotes, citations, math, and much

more. See the User’s Manual below under Pandoc’s

Markdown.

Pandoc has a modular design: it consists of a set of readers, which

parse text in a given format and produce a native representation of the

document (an abstract syntax tree or AST), and a set of writers, which

convert this native representation into a target format. Thus, adding an

input or output format requires only adding a reader or writer. Users

can also run custom pandoc filters to modify the intermediate AST (see

the documentation for filters and

lua filters).

Because pandoc’s intermediate representation of a document is less

expressive than many of the formats it converts between, one should not

expect perfect conversions between every format and every other. Pandoc

attempts to preserve the structural elements of a document, but not

formatting details such as margin size. And some document elements, such

as complex tables, may not fit into pandoc’s simple document model.

While conversions from pandoc’s Markdown to all formats aspire to be

perfect, conversions from formats more expressive than pandoc’s Markdown

can be expected to be lossy.

Installing

Documentation

Pandoc’s website contains a full User’s

Guide. It is also available

here as pandoc-flavored Markdown. The website also

contains some examples of the use of

pandoc and a limited online

demo.

Contributing

Pull requests, bug reports, and feature requests are welcome. Please

make sure to read the contributor guidelines before

opening a new issue.

License

© 2006-2018 John MacFarlane (jgm@berkeley.edu). Released under the

GPL,

version 2 or greater. This software carries no warranty of any kind.

(See COPYRIGHT for full copyright and warranty notices.)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值