package pandoc
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=ed0bb4281fb064e6f08c702e7becc473
sha512=71164a661b26c5deffbf68911673170ed5bddd397e0e3e45d37bac9e6f6c048244f66da9967b7f0345015360780cc2b0b898dcf175b53a896df26eca77d45201
doc/pandoc/Pandoc/index.html
Module PandocSource
Library to write pandoc filters.
Types for pandoc
Attributes: identifier, classes, key/values.
Target of a link: url and title.
Format for raw blocks.
Type of math element (display or inline).
Alignment of a table column.
The width of a table column, as a percentage of the text width.
The number of rows occupied by a cell; the height of a cell.
The number of columns occupied by a cell; the width of a cell.
The number of columns taken up by the row head of each row of a 'TableBody'. The row body takes up the remaining columns.
type inline = | Code of attr * string| Emph of inline list| Image of attr * inline list * target| Link of attr * inline list * target| Quoted of quote_type * inline list| RawInline of string * string| Space| SmallCaps of inline list| Str of string| Underline of inline list| Strong of inline list| Strikeout of inline list| Superscript of inline list| Subscript of inline list| Cite of citation list * inline list| SoftBreak| LineBreak| Math of math_type * string| Note of block list| Span of attr * inline list| UnhandledInline of Yojson.Basic.t
Inline elements.
and block = | BulletList of block list list| CodeBlock of attr * string| Header of int * attr * inline list| OrderedList of list_attributes * block list list| Para of inline list| Plain of inline list| RawBlock of format * string| Div of attr * block list| LineBlock of inline list list| BlockQuote of block list| DefinitionList of (inline list * block list list) list| HorizontalRule| Table of attr * caption * col_spec list * table_head * table_body list * table_foot| Figure of attr * caption * block list| UnhandledBlock of Yojson.Basic.t
Block elements.
and citation = | Citation of {citation_id : string;citation_prefix : inline list;citation_suffix : inline list;citation_mode : citation_mode;citation_note_num : int;citation_hash : int;
}
The caption of a table or figure, with optional short caption.
A body of a table, with an intermediate head, intermediate body, and the specified number of row header columns in the intermediate body.
JSON representation of a pandoc file.
Reading and writing
Internal representation from JSON representation.
JSON representation from internal representation.
Metadata
type meta_value = | MetaBool of bool| MetaInlines of inline list| MetaString of string| MetaMap of (string * meta_value) list| MetaList of meta_value list| MetaBlocks of block list| MetaUnhandled of Yojson.Basic.t
Document metadata.
Mapping functions
val map :
?block:(block -> block list option) ->
?inline:(inline -> inline list option) ->
t ->
tGeneral mapping function which maps a function on blocks and a function on inlines. If the functions return None the mapping is further recursed into.
Map a function to every list of inlines.
Map a function to every block. If the function returns None then the block is further recursed into.