Skip to content

Commit 28dae0d

Browse files
committed
fix: link within angle brackets was corrupted by table colspan (#48)
Added two urls within angle brackets to make them as links. It works fine at a normal single cell. While it cannot be turned successfully for a url before the `||` colspan symbol.
1 parent 534ff46 commit 28dae0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/jekyll-spaceship/processors/table-processor.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ def handle_colspan(data)
151151
end
152152
end
153153

154-
result = cell.content.match(/(\|)+$/)
154+
result = cell.inner_html.match(/(\|)+$/)
155155
return if result.nil?
156156

157-
cell.content = cell.content.gsub(/(\|)+$/, '')
157+
cell.inner_html = cell.inner_html.gsub(/(\|)+$/, '')
158158
result = result[0]
159159
colspan = result.scan(/\|/).count
160160
scope.row.colspan += colspan

0 commit comments

Comments
 (0)