Haxe-Markdown2 is an unofficial API for the Markdown2 library. It's designed to provide markdown conversion for web applications that don't have Python installed.
POST to http://haxe-markdown2.appspot.com with the markdown parameter in the body.
Haxe-Markdown2 is an unofficial API for the Markdown2 library. It's designed to provide markdown conversion for web applications that don't have Python installed.
POST to http://haxe-markdown2.appspot.com with the markdown parameter in the body.
| // normal haxe/javascript output for class.__init__ methods | |
| { | |
| js.Lib.document = document; | |
| js.Lib.window = window; | |
| onerror = function(msg,url,line) { | |
| var f = js.Lib.onerror; | |
| if( f == null ) | |
| return false; | |
| return f(msg,[url+":"+line]); | |
| } |
| // https://groups.google.com/d/msg/haxelang/IAqSXSREyHA/hjq-ZcLAcr4J | |
| @:overload(function(a:Dynamic,b:Dynamic):Void{}) | |
| @:overload(function<A,B,C>(a:A, b:B, c:C):C{}) | |
| @:macro public static function foo(args:Array<Expr>):Expr { | |
| return switch (args.length) { | |
| case 2: args[0]; | |
| case 3: args[2]; | |
| default: throw "wrong args"; | |
| } |
| package ; | |
| class A { | |
| public function new() { | |
| } | |
| public function some() { | |
| package example.inlineMeta; | |
| import haxe.macro.Printer; | |
| import haxe.macro.Type; | |
| import haxe.macro.Expr; | |
| import haxe.macro.Context; | |
| /** | |
| * ... | |
| * @author Skial Bainn |
| package example.inlineMeta; | |
| import haxe.ds.Option; | |
| import haxe.ds.StringMap; | |
| import haxe.macro.Type; | |
| import haxe.macro.Expr; | |
| import haxe.macro.Context; | |
| import haxe.macro.TypeTools; | |
| using uhu.macro.Jumla; |
| package example.namedArgs; | |
| import haxe.macro.Type; | |
| import haxe.macro.Expr; | |
| import haxe.macro.Context; | |
| using StringTools; | |
| using uhu.macro.Jumla; | |
| /** |
| package example.methodName; | |
| import haxe.macro.Printer; | |
| import haxe.macro.Type; | |
| import haxe.macro.Expr; | |
| import haxe.macro.Context; | |
| /** | |
| * ... | |
| * @author Skial Bainn |
| package ; | |
| using Lambda; | |
| class Main { | |
| public static function main() { | |
| var a = ['a', 'b', 'c']; | |
| var m:MyArray = a; | |
| package ; | |
| import haxe.macro.Type; | |
| import haxe.macro.Expr; | |
| import haxe.macro.Context; | |
| using haxe.macro.Tools; | |
| class MacroHijacked { | |