A bastard child of markdown and bbcode. Combining the flexibility of bbcode tags with the convenient of some markdown markups.
TODO
TODO
Markup:
- Inline element with no attribute:
[mark]content[/mark]
- Inline element with attributes:
[mark attr1="value1" attr2="value2"]content[/mark]
- Inline element short hand:
[mark body="content" /]
Example
Lorem [b]ipsum [i]dolor[/i] sit[/b] amet, [url href="http://consectetur.com"]consectetur[/url] adipisicing elit.
Yield:
<p>
Lorem <strong>ipsum <em>dolor</em> sit</strong> amet,
<a href="http://consectetur.com">consectetur</a> adipisicing elit.
</p>
Current supported inline elements:
Markup | HTML evaquilent | Description |
---|---|---|
[b] |
<strong> |
strong emphasis |
[i] |
<em> |
emphasis |
[u] |
<u> |
underline |
[s] |
<s> |
strikethrough |
[sup] |
<sup> |
superscript |
[sub] |
<sub> |
subscript |
[math] |
<math> |
math |
[code] |
<code> |
code |
Type | Special markup | Html output |
---|---|---|
bold | *text* |
text |
italic | _text_ |
text |
code | `text` |
text |
emoji | :grinning: |
😀 |
link | <http://example.com> |
http://example.com |
link with title | <google.com>(Google) |
|
image | !<https://picsum.photos/200> |
Type | Markup | Output |
---|---|---|
h1 | = Heading |
|
h2 | == Heading |
|
h3 | === Heading |
|
hr | --- |
<hr /> |
Blockquote
Markup
> block
>
> > nested block
Output
block
nested block
Unordered list
Markup
- list item 1
- list item 2
Output
- list item 1
- list item 2
Ordered list
Markup
- list item 1
- list item 2
Output
- list item 1
- list item 2
Code block
Markup
```js
console.log('Hello, World!')
```
Output
console.log('Hello, World!')
Table
Markup
| Tables | Are | Cool |
| ------------- | :-----------: | -----: |
| col 3 is | right-aligned | \$1600 |
| col 2 is | centered | \$12 |
| zebra stripes | are neat | \$1 |
Output
Tables | Are | Cool |
---|---|---|
col 3 is | right-aligned | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
TODO
Markup:
-
No attribute:
[[tag]] content [[/tag]]
-
With attributes:
[[tag attr1="value1" attr2="value2"]] content [/url]
-
auto closing
[[tag option="value" body="content" /]]
Examples:
-
Syntax highlight
[[code lang="ruby"]] print "Hey!" [[/code]]
-
Ascii art, poems
[[ascii]] /\_/\ =( °w° )= ) ( // (__ __)// [[/ascii]]
-
Spoiler/collapsible block
[[spoiler title="Spoiler"]] Hidden content. [[/spoiler]]
-
Math block
[[math syntax="latext"]] \Gamma(z) = \int_0^\infty t^[z-1]e^[-t]dt\,. [[/math]]
-
Hidden content
[[crypted hash="hmark"]] U2FsdGVkX18dmf1WcEODtR/m0vnPezX918/9/qHI56g= [[/crypted]]
MIT