'; gb = 1; } } } if (plen == 2) { if (right(c, 2) == "# ") { if (gh1 == 0 && pre == 0) { c = back(c, 2) + ""; gh1 = 1; } } } if (plen == 3) { if (right(c, 3) == "## ") { if (gh2 == 0 && pre == 0) { c = back(c, 3) + "
"; gh2 = 1; } } } if (plen == 4) { if (right(c, 4) == "### ") { if (gh3 == 0 && pre == 0) { c = back(c, 4) + "
"; gh3 = 1; } } } if (plen == 3) { if (right(c, 3) == "```") { if (gpre == 0) { c = back(c, 3) + "
"; pre = 1; gpre = 1; firstgp = 1; } else { c = back(c, 3) + ""; // + right(c, 3); pre = 0; gpre = 0; } } } if (plen == 4 && gpre == 0) { if (right(c, 4) == " ") { if (pre == 0) { c = back(c, 4) + ""; } else { c = back(c, 4) + ""; } pre = 1; } else { if (pre == 1 && gpre == 0) { c = back(c, 4) + "" + right(c, 4); } pre = 0; } } if (intag == 0 && inwiki == 0 && pre == 0 && right(c, 7) == " => ") { if (inwiki == 0) { c = back(c, 7) + ' ' + back(wikicopy, 1) + ' '; inwiki = 0; wikicopy = ""; } } var rf = "" ; rf = window.location.href.split('/')[window.location.href.split('/').length - 1].split('.html')[0] ; if (intag == 0 && pre == 0 && right(c, 16) == "[generate-title]") { if (link == 0) { c = back(c, 16) + rf ; } } } wiki.innerHTML=c; ``` license: 0-clause bsd ``` # 2021 mn # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ``` => https://freesoftwareresistance.neocities.org