Permalink
Browse files

fix: replaced arbitrary patterns with specific ones

  • Loading branch information...
p3k committed Aug 10, 2015
1 parent 5f87f9a commit eb8e1dbd8b06d5b5a293d0ebe929e740d06cb0b1
Showing with 3 additions and 3 deletions.
  1. +3 −3 code/Story/Story.js
View
@@ -675,9 +675,9 @@ Story.prototype.format_filter = function(value, param, mode) {
Story.prototype.linebreak_filter = function (value, param, mode) {
if (mode === 'markdown') {
var mdLineBreakMarker = new RegExp('xxx', 'g');
var mdQuoteMarker = new RegExp('yyy', 'g');
var mdCodeMarker = new RegExp('zzz', 'g');
var mdLineBreakMarker = new RegExp('<!--av-break-->', 'g');
var mdQuoteMarker = new RegExp('<!--av-quote-->', 'g');
var mdCodeMarker = new RegExp('<!--av-code-->', 'g');
return value
// Prevent Markdown for linebreaks (lines ending with 2 spaces)
// as well as code segments (4 spaces) to be removed by Helma’s format() method

0 comments on commit eb8e1db

Please sign in to comment.