diff --git a/web-ui/js/app/markdown.js b/web-ui/js/app/markdown.js index e4f5d46..6b59e06 100644 --- a/web-ui/js/app/markdown.js +++ b/web-ui/js/app/markdown.js @@ -353,7 +353,8 @@ function renderMarkdown(text, opts) { if (cells.length && cells[cells.length - 1].trim() === '') cells.pop(); return cells.map(function(c) { return c.trim(); }); }; - var isSep = function(line) { return /^\|[\s|:\-]+\|[ \t]*$/.test(line.trim()); }; + // 모델이 구분행에 '_'·'=' 를 섞어 내는 경우(:---_)도 표로 인정하되, 하이픈이 하나는 있어야 한다. + var isSep = function(line) { var t = line.trim(); return /^\|[\s|:\-_=]+\|[ \t]*$/.test(t) && t.indexOf('-') !== -1; }; var isRow = function(line) { return /^\|.+\|[ \t]*$/.test(line.trim()); }; var i = 0; while (i < lines.length) {