marklhett (folhett markdown)
marklhett is folhett's version of markdown, and its function can be found in https://folhett.neocities.org/content/js/library/text.js as text.markdown.replace(text)
there are currently 45 marklhett codes, all listed below
list:
# | name | code | html | preview |
---|---|---|---|---|
0 | none | text | text | hello world |
1 | strikethrough | /--text--/ | <s>text</s> | /--hello world--/ |
2 | underline | /_text_/ | <u>text</u> | /_hello world_/ |
3 | bold | /**text**/ | <strong>text</strong> | /**hello world**/ |
4 | italic | /*text*/ | <em>text</em> | /*hello world*/ |
5 | larger | /f+text+/ | <span style="font-size: larger">text</span> | /f+hello world+/ |
6 | smaller | /f-text-/ | <span style="font-size: smaller">text</span> | /f-hello world-/ |
7 | monospace | /f[text]/ | <span style="font-family: monospace">text</span> | /f[hello world]/ |
8 | subscript | /-text-/ | <sub>text</sub> | /-hello world-/ |
9 | superscript | /+text+/ | <sup>text</sup> | /+hello world+/ |
10 | code | /[text]/ | <code>text</code> | /[hello world]/ |
11 | left-to-right | /~text~/ | <bdo dir="ltr">text</bdo> | /~hello world~/ |
12 | right-to-left | ~/text/~ | <bdo dir="rtl">text</bdo> | ~/hello world/~ |
13 | link | /[text](url)/ | <a href="url" target="_blank">text</a> | /[hello world](https://folhett.neocities.org/hello-world)/ |
14 | input | /#id[type](text)/ | <input id="id" type="type" placeholder="text"> | /#input[number](hello world)/ |
15 | image | /[text]{url}/ | <img src="url" title="text (url)"> | /[hello world]{https://folhett.neocities.org/favicon.svg}/ |
16 | iframe | /#url#/ | <iframe src="url" style="resize: both;"></iframe> | /#https://folhett.neocities.org/#/ |
17 | div | /<text>/ | <div style="display: inline-block; border: 1px solid black;">text</div> | /<hello world>/ |
18 | style | /{style}(text)/ | <span style="style">text</span> | /{background-color: red; color: yellow; border: 2px dashed lime;}(hello world)/ |
19 | header level 1 | /- text/ | <h1>text</h1> | /- hello world/ |
20 | header level 2 | /-- text/ | <h2>text</h2> | /-- hello world/ |
21 | header level 3 | /--- text/ | <h3>text</h3> | /--- hello world/ |
22 | header level 4 | /---- text/ | <h4>text</h4> | /---- hello world/ |
23 | header level 5 | /----- text/ | <h5>text</h5> | /----- hello world/ |
24 | header level 6 | /------ text/ | <h6>text</h6> | /------ hello world/ |
25 | blank space | /x/ | | /x/ |
26 | break | /X/ | <br> | /X/ |
27 | horizontal rule | /-/ | <hr> | /-/ |
28 | id | /#id(text)/ | <span id="id">text</span> | /#hello-world(hello world)/ |
29 | script | /{js}/ | <script>js</script> | ☒ |
30 | unicode insert | /unic(code)/ | <span title="code">code</span> | /unic(9731)/ |
31 | red | /r(text)/ | <span style="color: red">text<span> | /r(hello world)/ |
32 | green | /g(text)/ | <span style="color: green">text<span> | /g(hello world)/ |
33 | lime | /l(text)/ | <span style="color: lime">text<span> | /l(hello world)/ |
34 | blue | /b(text)/ | <span style="color: blue">text<span> | /b(hello world)/ |
35 | cyan | /c(text)/ | <span style="color: cyan">text<span> | /c(hello world)/ |
36 | white | /w(text)/ | <span style="color: white">text<span> | /w(hello world)/ |
37 | magenta | /m(text)/ | <span style="color: magenta">text<span> | /m(hello world)/ |
38 | purple | /l(text)/ | <span style="color: purple">text<span> | /p(hello world)/ |
39 | yellow | /y(text)/ | <span style="color: yellow">text<span> | /y(hello world)/ |
40 | orange | /o(text)/ | <span style="color: orange">text<span> | /o(hello world)/ |
41 | brown | /n(text)/ | <span style="color: brown">text<span> | /n(hello world)/ |
42 | black | /k(text)/ | <span style="color: black">text<span> | /k(hello world)/ |
43 | gray | /a(text)/ | <span style="color: gray">text<span> | /a(hello world)/ |
44 | transparent | /t(text)/ | <span style="color: transparent">text<span> | /t(hello world)/ |
45 | color | /col[color](text)/ | <span style="color: color">text<span> | /col[rgb(0, 128, 255)](hello world)/ |
see also:
-
...