2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00

Dont convert md to html in fieldtype Text

This commit is contained in:
Faris Ansari 2018-10-23 02:20:35 +05:30
parent bd4c581462
commit b380812c57

View File

@ -1,5 +1,5 @@
const numberFormat = require('./numberFormat');
const markdown = new (require('showdown').Converter)();
// const markdown = new (require('showdown').Converter)();
const luxon = require('luxon');
const frappe = require('frappejs');
@ -13,7 +13,7 @@ module.exports = {
value = numberFormat.formatNumber(value);
} else if (field.fieldtype === 'Text') {
value = markdown.makeHtml(value || '');
// value = markdown.makeHtml(value || '');
} else if (field.fieldtype === 'Date') {
let dateFormat;