A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()):
- Headers
- Links
- Bold
| <div id="google_translate_element"></div> | |
| <script type="text/javascript"> | |
| function googleTranslateElementInit() { | |
| new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element'); | |
| } | |
| </script> | |
| <script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> |
| #! /bin/bash | |
| # | |
| # Script to deploy from Github to WordPress.org Plugin Repository | |
| # A modification of a number of different sources: | |
| # @link https://github.com/deanc/wordpress-plugin-git-svn | |
| # @link https://github.com/GaryJones/wordpress-plugin-svn-deploy | |
| # @link https://github.com/thenbrent/multisite-user-management/blob/master/deploy.sh | |
| # | |
| # Accompanying Tutorial Here: | |
| # @link https://ericbusch.net/?p=106 |
| <?php | |
| /** | |
| * ----------------------------------------------------------------------------------------- | |
| * Based on `https://github.com/mecha-cms/mecha-cms/blob/master/system/kernel/converter.php` | |
| * ----------------------------------------------------------------------------------------- | |
| */ | |
| // HTML Minifier | |
| function minify_html($input) { |
| 'use strict'; | |
| /** | |
| * Javascript version of https://gist.github.com/jbroadway/2836900 | |
| * | |
| * Slimdown - A very basic regex-based Markdown parser. Supports the | |
| * following elements (and can be extended via Slimdown::add_rule()): | |
| * | |
| * - Headers | |
| * - Links |
| // String utils | |
| // | |
| // resources: | |
| // -- mout, https://github.com/mout/mout/tree/master/src/string | |
| /** | |
| * "Safer" String.toLowerCase() | |
| */ | |
| function lowerCase(str) { | |
| return str.toLowerCase(); |
A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()):