PEG Markdown Highlight
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
Classes | Defines | Typedefs | Enumerations
pmh_definitions.h File Reference

Global definitions for the parser. More...

Go to the source code of this file.

Classes

struct  pmh_Element
 A Language element occurrence. More...

Defines

#define pmh_NUM_TYPES   30
 Number of types in pmh_element_type.
#define pmh_NUM_LANG_TYPES   (pmh_NUM_TYPES - 6)
 Number of language element types in pmh_element_type.

Typedefs

typedef struct pmh_Element pmh_element

Enumerations

enum  pmh_element_type {
  pmh_LINK, pmh_AUTO_LINK_URL, pmh_AUTO_LINK_EMAIL, pmh_IMAGE,
  pmh_CODE, pmh_HTML, pmh_HTML_ENTITY, pmh_EMPH,
  pmh_STRONG, pmh_LIST_BULLET, pmh_LIST_ENUMERATOR, pmh_COMMENT,
  pmh_H1, pmh_H2, pmh_H3, pmh_H4,
  pmh_H5, pmh_H6, pmh_BLOCKQUOTE, pmh_VERBATIM,
  pmh_HTMLBLOCK, pmh_HRULE, pmh_REFERENCE, pmh_NOTE,
  pmh_RAW_LIST, pmh_RAW, pmh_EXTRA_TEXT, pmh_SEPARATOR,
  pmh_NO_TYPE, pmh_ALL
}
 Element types. More...
enum  pmh_extensions { pmh_EXT_NONE = 0, pmh_EXT_NOTES = (1 << 0) }
 Bitfield enumeration of supported Markdown extensions. More...

Detailed Description

Global definitions for the parser.


Define Documentation

#define pmh_NUM_LANG_TYPES   (pmh_NUM_TYPES - 6)

Number of language element types in pmh_element_type.

See also:
pmh_element_type
#define pmh_NUM_TYPES   30

Number of types in pmh_element_type.

See also:
pmh_element_type

Enumeration Type Documentation

Element types.

The first (documented) ones are language element types.

The last (non-documented) ones are utility types used by the parser itself.

See also:
pmh_element
Enumerator:
pmh_LINK 

Explicit link

pmh_AUTO_LINK_URL 

Implicit URL link

pmh_AUTO_LINK_EMAIL 

Implicit email link

pmh_IMAGE 

Image definition

pmh_CODE 

Code (inline)

pmh_HTML 

HTML

pmh_HTML_ENTITY 

HTML special entity definition

pmh_EMPH 

Emphasized text

pmh_STRONG 

Strong text

pmh_LIST_BULLET 

Bullet for an unordered list item

pmh_LIST_ENUMERATOR 

Enumerator for an ordered list item

pmh_COMMENT 

(HTML) Comment

pmh_H1 

Header, level 1

pmh_H2 

Header, level 2

pmh_H3 

Header, level 3

pmh_H4 

Header, level 4

pmh_H5 

Header, level 5

pmh_H6 

Header, level 6

pmh_BLOCKQUOTE 

Blockquote

pmh_VERBATIM 

Verbatim (e.g. block of code)

pmh_HTMLBLOCK 

Block of HTML

pmh_HRULE 

Horizontal rule

pmh_REFERENCE 

Reference

pmh_NOTE 

Note

pmh_RAW_LIST 

Internal to parser. Please ignore.

pmh_RAW 

Internal to parser. Please ignore.

pmh_EXTRA_TEXT 

Internal to parser. Please ignore.

pmh_SEPARATOR 

Internal to parser. Please ignore.

pmh_NO_TYPE 

Internal to parser. Please ignore.

pmh_ALL 

Internal to parser. Please ignore.

Bitfield enumeration of supported Markdown extensions.

Enumerator:
pmh_EXT_NONE 

No extensions

pmh_EXT_NOTES 

A footnote syntax like that of Pandoc or PHP Markdown Extra