Fix empty items in textlists.
This commit is contained in:
parent
82b8901a76
commit
9c679f1bf3
|
@ -336,7 +336,9 @@ function elems.textlist(node)
|
||||||
local res = make('div')
|
local res = make('div')
|
||||||
for i, item in ipairs(node.listelem) do
|
for i, item in ipairs(node.listelem) do
|
||||||
local elem = make('div')
|
local elem = make('div')
|
||||||
if item:sub(1, 1) ~= '#' then
|
if item == '' then
|
||||||
|
elem.innerHTML = ' '
|
||||||
|
elseif item:sub(1, 1) ~= '#' then
|
||||||
elem.textContent = item
|
elem.textContent = item
|
||||||
elseif item:sub(2, 2) == '#' then
|
elseif item:sub(2, 2) == '#' then
|
||||||
elem.textContent = item:sub(2)
|
elem.textContent = item:sub(2)
|
||||||
|
|
Loading…
Reference in New Issue