Fixed small bug in README generation.
This commit is contained in:
parent
69e262fc5b
commit
d5d6c9876d
2 changed files with 5 additions and 7 deletions
|
@ -120,8 +120,6 @@ While conversions from pandoc’s Markdown to all formats aspire to be
|
||||||
perfect, conversions from formats more expressive than pandoc’s Markdown
|
perfect, conversions from formats more expressive than pandoc’s Markdown
|
||||||
can be expected to be lossy.
|
can be expected to be lossy.
|
||||||
|
|
||||||
## Using `pandoc`
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
## Installing
|
## Installing
|
||||||
|
|
|
@ -14,6 +14,9 @@ function Div(elem)
|
||||||
local mdoc = pandoc.read(manual, "markdown")
|
local mdoc = pandoc.read(manual, "markdown")
|
||||||
local blocks = mdoc.blocks
|
local blocks = mdoc.blocks
|
||||||
while blocks[i] do
|
while blocks[i] do
|
||||||
|
if blocks[i].t == 'Header' then
|
||||||
|
include = false
|
||||||
|
end
|
||||||
if include then
|
if include then
|
||||||
table.insert(description, pandoc.walk_block(blocks[i],
|
table.insert(description, pandoc.walk_block(blocks[i],
|
||||||
-- remove internal links
|
-- remove internal links
|
||||||
|
@ -23,12 +26,9 @@ function Div(elem)
|
||||||
end
|
end
|
||||||
end }))
|
end }))
|
||||||
end
|
end
|
||||||
if blocks[i].t == 'Header' then
|
if blocks[i].t == 'Header' and
|
||||||
if blocks[i].identifier == 'description' then
|
blocks[i].identifier == 'description' then
|
||||||
include = true
|
include = true
|
||||||
elseif include then
|
|
||||||
include = false
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
i = i + 1
|
i = i + 1
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue