A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()
):
- Headers
- Links
- Bold
{ | |
"USD": { | |
"symbol": "$", | |
"name": "US Dollar", | |
"symbol_native": "$", | |
"decimal_digits": 2, | |
"rounding": 0, | |
"code": "USD", | |
"name_plural": "US dollars" | |
}, |
A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()
):
This gist assumes:
<IfModule rewrite_module> | |
#OR<IfModule mod_rewrite.c> | |
#OR<IfModule mod_rewrite.so> | |
# according to apache-documentation, followsymlinks is needed for mod_rewrite | |
Options +FollowSymLinks | |
# Enable the RewriteEngine | |
RewriteEngine On | |
# if needed add(/uncomment) the following: | |
#RewriteBase /path/to/file/to/be/found/ | |
# check if the request is not an existing file |
DELIMITER | | |
CREATE FUNCTION uuid_from_bin(b BINARY(16)) | |
RETURNS CHAR(36) DETERMINISTIC | |
BEGIN | |
DECLARE hex CHAR(32); | |
SET hex = HEX(b); | |
RETURN CONCAT(LEFT(hex, 8), '-', MID(hex, 9,4), '-', MID(hex, 13,4), '-', MID(hex, 17,4), '-', RIGHT(hex, 12)); | |
END | |
| |