cosy 0.1.1

A parser for Cosense/Scrapbox markup syntax that produces a typed AST
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub const LBRACKET: char = '[';
pub const RBRACKET: char = ']';
pub const WHITESPACE: char = ' ';
pub const GT: char = '>';
pub const BACKTICK: char = '`';
pub const TABLE_PREFIX: &str = "table:";
pub const CODE_PREFIX: &str = "code:";
pub const ICON_SUFFIX: &str = ".icon";

// Refer to help-jp/文字装飾記法 for the list of decoration characters
// https://scrapbox.io/help-jp/%E6%96%87%E5%AD%97%E8%A3%85%E9%A3%BE%E8%A8%98%E6%B3%95
pub const DECO_CHARS: &str = "!#%&'()*+,-./{|}<>_~=";
pub const HASH: char = '#';
pub const HELPFEEL_PREFIX: &str = "? ";
pub const CMD_PREFIX_DOLLAR: &str = "$ ";
pub const CMD_PREFIX_PERCENT: &str = "% ";
pub const MATH_BRACKET_PREFIX: &str = "$ ";