Skip to content

Commit e8e4ddb

Browse files
committed
fix: IALs not working for a link in table cell (#55)
1 parent ca2cd9a commit e8e4ddb

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
@@ -95,14 +95,14 @@ def on_handle_html(content)
9595
handle_multi_rows(data)
9696
handle_text_align(data)
9797
handle_rowspan(data)
98-
handle_attr_list(data)
9998
end
10099
end
101100
rows.each do |row|
102101
cells = row.css('th, td')
103102
cells.each do |cell|
104103
data.cell = cell
105104
handle_format(data)
105+
handle_attr_list(data)
106106
end
107107
end
108108
self.handled = true
@@ -272,7 +272,7 @@ def handle_attr_list(data)
272272
content = cell.inner_html
273273
# inline attribute list(IAL) handler
274274
ial_handler = ->(list) do
275-
list.scan(/(\S+)=("|')(.*?)\2|(\S+)/) do |attr|
275+
list.scan(/(\S+)=(”|"|')(.*?)\2|(\S+)/) do |attr|
276276
key = attr[0]
277277
val = attr[2]
278278
single = attr[3]

0 commit comments

Comments
 (0)