sbs2-markup's Introduction
* Instructions This can be adapted to work on any website replace the functions in render.js with your own html generation functions (I guess technically it doesn't even need to be html) If you want to add your own syntax highlighter, you can replace highlight.js Define a global variable named `Highlight`, with a function `Highlight.highlight(text, language)`, which returns the output in a DocumentFragment (or whatever format your rendering system uses) If you want, you can use `build.sh` to combine all the files into `_build.js` (or follow the instructions in the file to do it manually) * Files ** parse.js main parser ** render.js html rendering functions ** highlight.js syntax highlighter (for smilebasic) ** build.sh build script (optional)
sbs2-markup's People
sbs2-markup's Issues
exclamation point in url edge case
very strange behavior when named URLs end with exclamation point
https://en.touhouwiki.net/wiki/HAPPY_I_SCREAM!![96]
-> https://en.touhouwiki.net/wiki/HAPPY_I_SCREAM![!96]
workarounds: urlencoding !
https://en.touhouwiki.net/wiki/HAPPY_I_SCREAM%21%21[96]
12y/bbcode block args equivalent to '1' disappear
Line 1010 in dc520c7
also affects 12y but i don't know where
[spoiler=1.0][/spoiler]
[spoiler=2.0][/spoiler]
{#spoiler=1 t}
{#spoiler=2 t}
doubles equivalent to 1 evaluate as true and don't get assigned to args[""]
should maybe be !== in the bbcode part
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.