Adds headers to the AsciiDoc editor

This commit is contained in:
Guillaume Grossetie
2014-09-18 20:03:35 +02:00
parent 4f443a3c62
commit 8466425836
@@ -37,6 +37,21 @@ var ASCIIDoc = {
replace: "----\n$1$2\n----\n"
},
'function-h1' : {
search: /(.+)([\n]?)/g,
replace: "= $1$2"
},
'function-h2' : {
search: /(.+)([\n]?)/g,
replace: "== $1$2"
},
'function-h3' : {
search: /(.+)([\n]?)/g,
replace: "=== $1$2"
},
'function-link' : {
exec: function( txt, selText, $field ) {
var results = null;