|
Friki example source code file (wiki.transform)
The Friki wiki.transform source code# harmonise line-endings Replace !(\n\r)|(\r\n)|(\r)!\n! # escape rogue HTML Replace !<!<! Replace !>!>! # "six-ticks" - override pattern recognition Replace !''''''!<b>! # "hands-off" block Lock !\[\n((.|\n)*?)\n\]!<pre>&1! # tabs, emphasis and rulers Replace ! !\t! Replace !\n\s*\n!\n<p/>\n! Replace !'{5}(.+?)'{5}!<i>$1! Replace !'{3}(.+?)'{3}!<b>$1! Replace !'{2}(.+?)'{2}!<i>$1! Replace !(^|\n)-{4,}!\n<hr/>! # ordered/unordered list FilterReplace wiki.ListRow !(^\t+(\*|[1234567890]+)\.?\s*(.+)(\n|\z))+!\n&~0! # monospace Replace !(^ (.+))(\n (.+))*!<pre>$0! Replace !<pre> ! ! Replace !\n !\n! # def list Replace !(((?:^|\n)\t+)(?:\s*)(.*)(?:\s*):(?:\s*)(.*))+!<dl>\n$0\n! Replace !((?:^|\n)\t+)(?:\s*)(.*)(?:\s*):(?:\s*)(.*)!$1<dt>$2 (.|\n)*?)*?\|[ \t]*)+(?=($|\n))! Other Friki examples (source code examples)Here is a short list of links related to this Friki wiki.transform source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.