0.4.19 • Published 5 years ago
sezong v0.4.19
Sezong
Sezong: A new way to create document.
Definition
- Decorator - Inline function which decorates text. receives text, returns text.
- Block Constructor - Inserts Block-level information which is not a text.
- Special Block Constructor - Block Constructor which starts with special character in ascii.
- Normal Block Constructor - Block Constructor which is not a Special Block Constructor.
- Preprocessor - Before tokenize, Change a little bit of source.
- Postprocessor - After parse, Change a little bit of node (normal text node only).
- Rule - Decorator, Block Constructor, Preprocessor, and Postprocessor.
- Normal Text - Just normal text.
- Escaping - Escapes something in parsing Decorator or Block Constructor.
Syntax
Decorator
[Text 'f1 'f2(argument) 'f3...]
Block Constructor
specialCharacterIdentifier requiredInput specialCharacterIdentifier requiredInput { str } specialCharacterIdentifier requiredInput { k = v, k2 = v2 } | identifier requiredInput | identifier requiredInput { str } | identifier requiredInput { k = v, k2 = v2 }
Normal Text
Write what you want to say.
Escaping
\escape \with \\ \character.
Rules
Preprocessors
- (todo) Emojify - convert
:name:
to['emoji(name)]
.
Postprocessors
- (todo) Pretty Quote - convert pairs of qoutes to unicode quote
“”
and‘’
. - (todo) Typographers' Symbol - convert
+-
to±
,...
to…
,---
to—
,--
to–
,(c)
or(C)
to©
,(r)
or(R)
to ®,(tm)
or(TM)
to™
,(p)
or(P)
to§
. - (todo) Smart Arrow - convert
-->
,<--
,<-->
,==>
,<==
, and<==>
to,→
,←
,↔
,⇒
,⇐
,⇔
.
Predefined Decorators
We're sure that many decorator will be separated with npm package like babel. We'll provide a preset.
'italic
- make text italic'bold
- make text bold'underline
- make text underlined'strikethrough
- add strikethrough to text'kbd
- add keyboard marker to text'keyinputs
- seems like'kbd
, but support the key combination (likeCtrl + Space
)'link(url)
- link to specific url'emoji(name)
- add emoji to the end of text'icon(name)
- add icon to the end of text'sub
- make text subscript'sup
- make text subscript'mark
- make text marked'fn
- make text footnote'abbr(meaning)
- Add abbreviations'checkbox(true or false)
- Add (un)checked checkbox to end of text. not modifiable.'math
- parse text as LaTeX math.'userAt(platform: twitter | youtube | telegram)
- create mention.'br
- add line break to end of text.
Predefined Block Constructors
Special Block Constructors
# text { toc: boolean = true }
- heading level 1## text { toc: boolean = true }
- heading level 2### text { toc: boolean = true }
- heading level 3#### text { toc: boolean = false }
- heading level 4##### text { toc: boolean = false }
- heading level 5###### text { toc: boolean = false }
- heading level 6> text
- quote---
- horizontal line
Normal Block Constructors
youtube videoId
- embed youtube videoimage url { width: string = auto, height: string = auto}
- embed imagecode language { ...texts, highlight: int[] = [] }
- code blockcontainer name { ...texts }
- container blockinclude fileUrl
- include filemath { ...texts }
- math blocktoc { maxIncludes: number = 3 }
- generate ToC (Table of Contents)comment { ...texts }
- comment block, must be ignored
Todos
- Native-Level Table Syntax
- Native-Level List Syntax
0.4.19
5 years ago
0.4.18
5 years ago
0.4.17
5 years ago
0.4.16
5 years ago
0.4.15
5 years ago
0.4.14
5 years ago
0.4.13
5 years ago
0.4.12
5 years ago
0.4.11
5 years ago
0.4.10
5 years ago
0.4.9
5 years ago
0.4.8
5 years ago
0.4.7
5 years ago
0.4.6
5 years ago
0.4.5
5 years ago
0.4.4
5 years ago
0.4.3
5 years ago
0.4.2
5 years ago
0.4.1
5 years ago
0.4.0
5 years ago
0.3.10
5 years ago
0.3.9
5 years ago
0.3.8
5 years ago
0.3.7
5 years ago
0.3.6
5 years ago
0.3.5
5 years ago
0.3.4
5 years ago
0.3.2
5 years ago
0.3.1
5 years ago
0.3.0
5 years ago
0.2.0
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.4
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago