Merge pull request #864 from Mogztter/asciidoc-headers

Adds headers to the AsciiDoc editor
This commit is contained in:
Sunny Ripert
2014-09-26 15:48:47 +02:00
@@ -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;