Module: Paru::PandocFilter

Defined in:
lib/paru/filter/node.rb,
lib/paru/filter/div.rb,
lib/paru/filter/row.rb,
lib/paru/filter/str.rb,
lib/paru/filter/attr.rb,
lib/paru/filter/cell.rb,
lib/paru/filter/cite.rb,
lib/paru/filter/code.rb,
lib/paru/filter/emph.rb,
lib/paru/filter/link.rb,
lib/paru/filter/list.rb,
lib/paru/filter/math.rb,
lib/paru/filter/meta.rb,
lib/paru/filter/note.rb,
lib/paru/filter/null.rb,
lib/paru/filter/para.rb,
lib/paru/filter/span.rb,
lib/paru/filter/block.rb,
lib/paru/filter/image.rb,
lib/paru/filter/plain.rb,
lib/paru/filter/space.rb,
lib/paru/filter/table.rb,
lib/paru/filter/value.rb,
lib/paru/filter/figure.rb,
lib/paru/filter/header.rb,
lib/paru/filter/inline.rb,
lib/paru/filter/quoted.rb,
lib/paru/filter/strong.rb,
lib/paru/filter/target.rb,
lib/paru/filter/caption.rb,
lib/paru/filter/version.rb,
lib/paru/filter/citation.rb,
lib/paru/filter/col_spec.rb,
lib/paru/filter/document.rb,
lib/paru/filter/meta_map.rb,
lib/paru/filter/metadata.rb,
lib/paru/filter/int_value.rb,
lib/paru/filter/meta_bool.rb,
lib/paru/filter/meta_list.rb,
lib/paru/filter/raw_block.rb,
lib/paru/filter/strikeout.rb,
lib/paru/filter/subscript.rb,
lib/paru/filter/table_end.rb,
lib/paru/filter/underline.rb,
lib/paru/filter/code_block.rb,
lib/paru/filter/line_block.rb,
lib/paru/filter/line_break.rb,
lib/paru/filter/meta_value.rb,
lib/paru/filter/raw_inline.rb,
lib/paru/filter/small_caps.rb,
lib/paru/filter/soft_break.rb,
lib/paru/filter/table_body.rb,
lib/paru/filter/table_foot.rb,
lib/paru/filter/table_head.rb,
lib/paru/filter/block_quote.rb,
lib/paru/filter/bullet_list.rb,
lib/paru/filter/empty_block.rb,
lib/paru/filter/meta_blocks.rb,
lib/paru/filter/meta_string.rb,
lib/paru/filter/superscript.rb,
lib/paru/filter/empty_inline.rb,
lib/paru/filter/meta_inlines.rb,
lib/paru/filter/ordered_list.rb,
lib/paru/filter/short_caption.rb,
lib/paru/filter/inner_markdown.rb,
lib/paru/filter/definition_list.rb,
lib/paru/filter/horizontal_rule.rb,
lib/paru/filter/list_attributes.rb,
lib/paru/filter/ast_manipulation.rb,
lib/paru/filter/definition_list_item.rb

Overview

PandocFilter is a module containig the paru's Filter functionality

Defined Under Namespace

Modules: ASTManipulation, InnerMarkdown Classes: Attr, Block, BlockQuote, BulletList, Caption, Cell, Citation, Cite, Code, CodeBlock, ColSpec, DefinitionList, DefinitionListItem, Div, Document, Emph, EmptyBlock, EmptyInline, Figure, Header, HorizontalRule, Image, Inline, IntValue, LineBlock, LineBreak, Link, List, ListAttributes, Math, Meta, MetaBlocks, MetaBool, MetaInlines, MetaList, MetaMap, MetaString, MetaValue, Metadata, Node, Note, Null, OrderedList, Para, Plain, Quoted, RawBlock, RawInline, Row, ShortCaption, SmallCaps, SoftBreak, Space, Span, Str, Strikeout, Strong, Subscript, Superscript, Table, TableBody, TableEnd, TableFoot, TableHead, Target, Underline, Value, Version

Constant Summary collapse

AST2MARKDOWN =

A Paru::Pandoc converter from JSON to markdown

Paru::Pandoc.new do
    from "json"
    to "markdown-smart"
    preserve_tabs true
end
MARKDOWN2JSON =

A Paru::Pandoc converter from markdown to JSON

Paru::Pandoc.new do
    from "markdown+smart"
    to "json"
    preserve_tabs true
end
VALUE_ENCODED_IN_TYPE_NAME =

Values without value are encoded in their type name.

:value_encoded_in_type_name
ALIGNMENTS =

The allignment of a table column

["AlignLeft", "AlignRight", "AlignCenter", "AlignDefault"]
COL_WIDTH_DEFAULT =

The default width of a column

"ColWidthDefault"
DEFAULT_COLSPEC =

Default value for a column specification: left aligned with default width

[{"t" => "AlignLeft"}, {"t" => COL_WIDTH_DEFAULT}]
VERSION =

Pandoc type version key

"pandoc-api-version"
META =

Pandoc type meta key

"meta"
BLOCKS =

Pandoc type block key

"blocks"
CURRENT_PANDOC_VERSION =

The current pandoc type version

[1, 23]