#4 Generate HTML Assembler

クローズ
5 年 前kazuki によって開かれました · 0 コメント
Alexandre Leblanc5 年 前 にコメントしました
  • 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 年 前 から参照されました
kazuki 5 年 前 に閉じられました
会話に参加するには サインイン してください。
マイルストーンなし
担当者なし
1 参加者
読み込み中…
キャンセル
保存
まだコンテンツがありません