JDMCreator / LaTeXTableEditor

readme
MIT License
137 stars 14 forks source link

Missing borders after import of tabularray #84

Closed sammaddens closed 11 months ago

sammaddens commented 1 year ago

A table where all borders are drawn is correctly translated to tabularray.

\begin{tblr}{
  hlines,
  vlines,
}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9 
\end{tblr}

But importing that code gives an incorrect result: all vertical lines are missing.

table

Replacing (3 times) else if by if in latex-import.js will solve this issue.

if(name == "vlines")
if(/^hline\s*\{([^\}]+)\}$/.test(name))
if(/^vline\s*\{([^\}]+)\}$/.test(name))