fix complex text
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
define('view-helper', ['lib!client/lib/purify.min.js'], function () {
|
||||
|
||||
var ViewHelper = function (options) {
|
||||
this.urlRegex = /(^|[^\(])(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
|
||||
this._registerHandlebarsHelpers();
|
||||
|
||||
this.mdBeforeList = [
|
||||
@@ -316,8 +315,6 @@ define('view-helper', ['lib!client/lib/purify.min.js'], function () {
|
||||
transfromMarkdownText: function (text, options) {
|
||||
text = text || '';
|
||||
|
||||
text = text.replace(this.urlRegex, '$1[$2]($2)');
|
||||
|
||||
text = Handlebars.Utils.escapeExpression(text).replace(/>+/g, '>');
|
||||
|
||||
this.mdBeforeList.forEach(function (item) {
|
||||
|
||||
Reference in New Issue
Block a user