A lightweight markup language
This has been developed purely for fun to see what I can do with Jade's convenient selector-based syntax.
tagName#id.class1.class2(attr1="value", attr2="value 2")[innerHTLM]
h3 This is a header
#it is a unordered or ordered list
var a = 1;
There are some rough examples I used to develop the basic lexer and parser; these can be found in
As an npm module:
npm install -g jadedown
There's also a browser version in jadedown.js.
<script src="jadedown.js"></script> <script> jadedown('*Example*'); </script>
This library comes with a command-line script:
Or as a CommonJS module:
var jadedown = require('jadedown'); jadedown('h3 Example');
Copyright (C) 2011 by Alex R. Young
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.