no explicit header support in `convert_doc`

avi/dynamic
Shuhei Kadowaki 2020-05-16 17:53:46 +09:00
parent 98abd5e92e
commit 6d91ab6512
1 changed files with 0 additions and 13 deletions

View File

@ -92,19 +92,6 @@ function convert_to_notebook(doc)
cells = []
ex_count = 1
# Handle header
head_tpl = """
{{#:title}}# {{:title}}{{/:title}}
{{#:author}}### {{{:author}}}{{/:author}}
{{#:date}}### {{{:date}}}{{/:date}}
"""
if isa(doc.chunks[1], DocChunk)
strip_header!(doc)
doc.chunks[1].content[1].content =
Mustache.render(head_tpl; [Pair(Symbol(k), v) for (k, v) in doc.header]...) * doc.chunks[1].content[1].content
end
for chunk in doc.chunks
if isa(chunk, DocChunk)
push!(