fix(markdown): 표 구분행에 '_' 등이 섞여도(:---_) 표로 렌더링
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c3b36d6f9b
commit
a483f9add7
1 file changed
+2
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user