#4 Generate HTML Assembler

已關閉
kazuki5 年之前創建 · 0 條評論
  • Assemble HTML components (inserts html blocks in an html file)

If no header.html and/or footer.html are provided, default to normal HTML closure.

tl;dr; The tool should generate a valid html5 page regardless of footer and header.

Considerations

  • Page title, namely <title>...</title> should be derived from the first <h1> element content. Alternatively, using the AST from comrak, detect it.

This would mean instead of returning the content from md_to_html, return a

struct FileData {
    content: String, 
    title: String
}
* Assemble HTML components (inserts html blocks in an html file) If no header.html and/or footer.html are provided, default to normal HTML closure. tl;dr; The tool should generate a valid html5 page regardless of footer and header. # Considerations * Page title, namely `<title>...</title>` should be derived from the first `<h1>` element content. Alternatively, using the AST from `comrak`, detect it. This would mean instead of returning the content from `md_to_html`, return a ```rust struct FileData { content: String, title: String } ```
Alexandre Leblanc 在代碼提交 5 年之前 中引用了該問題
kazuki5 年之前 關閉
Sign in to join this conversation.
未選擇里程碑
未指派成員
1 參與者
正在加載...
取消
保存
尚未有任何內容