mirror of
https://github.com/logseq/logseq.git
synced 2026-05-16 08:52:20 +00:00
fix: improve markdown table row parsing by refining line trimming logic
This commit is contained in:
@@ -393,8 +393,9 @@
|
||||
|
||||
(defn- split-markdown-table-row
|
||||
[line]
|
||||
(let [s (cond-> (string/trim line)
|
||||
(string/starts-with? (string/trim line) "|") (subs 1))
|
||||
(let [line' (string/trim line)
|
||||
s (cond-> line'
|
||||
(string/starts-with? line' "|") (subs 1))
|
||||
trailing-pipe? (string/ends-with? s "|")]
|
||||
(loop [idx 0
|
||||
start 0
|
||||
|
||||
Reference in New Issue
Block a user