Tables
初回公開:2018/01/01
最終更新:2018/01/13
「Tables Extension — Python Markdown」をつたない翻訳,勝手な解釈。
【 目次 】
要約
Tables extensionは、Markdownドキュメントにテーブルを作成する機能を追加します。
このextensionは標準のMarkdownライブラリに含まれています。
構文
テーブルは、PHP Markdown Extraで既定された構文を使用して定義されます。
したがって、以下のテキスト(上記のPHPドキュメントから抜粋):
First Header | Second Header ------------- | ------------- Content Cell | Content Cell Content Cell | Content Cell
次のように表示されます:
<table> <thead> <tr> <th>First Header</th> <th>Second Header</th> </tr> </thead> <tbody> <tr> <td>Content Cell</td> <td>Content Cell</td> </tr> <tr> <td>Content Cell</td> <td>Content Cell</td> </tr> </tbody> </table>
使い方
extensionの一般的な使用法については、Extensionsを参照、extensionの名前としてmarkdown.extensions.tables
を指定してください。
このextensionは特別な設定オプションを受け入れません。