Pandoc - 複数のHTMLファイルにエクスポート

Pandoc - 複数のHTMLファイルにエクスポート

マークダウンファイルがあります。たとえば、

# This is a heading
This is a text in a html file
## This is a subheading
This is a text in a subheading

# This is another heading

This is a text in other html file

次のインデックスファイルを含む複数のHTMLファイルにエクスポートできますか?

1. This is a heading
1.1 This is a subheading
2. This is another heading

各ヘッダーは、次のヘッダーの前のすべてのエントリを含むhtmlファイルです。 GNUドキュメントに似ています:https://www.gnu.org/software/tar/manual/html_node/index.html

ベストアンサー1

あなたはそれを使用することができます文字メッセージこの目的のために:

pandoc -i file.md -o file.texi
texi2any --html file.texi

これにより、index.htmlファイルとすべてのノードを含む「files」ディレクトリが作成されます。

おすすめ記事