ep_markdown
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -84,3 +84,3 @@ /** | ||
var headingtags = ['# ', '## ', '### ', '#### ', '##### ', '###### ', '`']; | ||
var headingtags = ['# ', '## ', '### ', '#### ', '##### ', '###### ', '```']; | ||
var headingprops = [['heading', 'h1'], ['heading', 'h2'], ['heading', 'h3'], ['heading', 'h4'], ['heading', 'h5'], ['heading', 'h6'], ['heading', 'code']]; | ||
@@ -153,2 +153,3 @@ var headinganumMap = {}; | ||
var heading = false; | ||
var isCode = false; | ||
var deletedAsterisk = false; // we need to delete * from the beginning of the heading line | ||
@@ -171,2 +172,7 @@ var iter2 = Changeset.opIterator(Changeset.subattribution(attribs, 0, 1)); | ||
if (heading) { | ||
if(heading === "```"){ | ||
isCode = true; | ||
}else{ | ||
isCode = false; | ||
} | ||
assem.append(heading); | ||
@@ -326,5 +332,5 @@ } | ||
// if (heading) { | ||
// assem.append('}'); | ||
// } | ||
if (isCode) { | ||
assem.append('```'); | ||
} | ||
@@ -331,0 +337,0 @@ // replace &, _ |
{ | ||
"name": "ep_markdown", | ||
"description": "Edit and Export as Markdown in Etherpad", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "John McLear", |
Sorry, the diff of this file is not supported yet
32444
741