內容簡介
此外掛可將 Markdown 與 Markdown-Extra 格式的文件匯入 WordPress 的文章和頁面,輸出為 HTML,並解析和儲存 YAML front matter 至 post_meta、標籤和 (可選) 文章表格。
建立於 MetaParsedown、Parsedown 和 Symfony YAML 元件之上
支援 Markdown 和 Markdown-Extra 格式的文件
使用方便
輕量級
可選擇為語法突顯效果設計 Markdown 程式碼片段
經由您喜愛的 Git 存儲庫維護標準的 Markdown 文件
適用於 Gutenberg 及經典 WordPress 編輯器
使用方法
只需將 metaparsedown shortcode 加入貼文,其 url 屬性需識別此 Markdown 文件:
[metaparsedown url='https://gitlab.com/pagerange/docs/raw/master/markdown/test_markdown.md' /]
可選擇將解析並儲存 Markdown YAML front matter 至 post_meta 表格,加入 meta 屬性。
[metaparsedown url='https://gitlab.com/pagerange/docs/raw/master/markdown/test_markdown.md' meta="true" /]
可選擇透過 overwrite 屬性,覆蓋文章的 ‘post_title’ 和 ‘post_excerpt’ 欄位的 YAML 值。
[metaparsedown url='https://gitlab.com/pagerange/docs/raw/master/markdown/test_markdown.md' meta="true" overwrite="true" /]<h3>Support</h3>
請至 https://github.com/pagerange/metaparsedown-wordpress/issues 回報問題。
捐贈
透過 Paypal 捐贈,網址為: http://pagerange.com/projects/wordpress/metaparsedown
外掛標籤
開發者團隊
原文外掛簡介
Import markdown and markdown-extra documents to WordPress posts and pages, output as HTML, parse and save YAML front matter to post_meta, tags, and (optionally) the posts tables.
Built on MetaParsedown, Parsedown and Symfony YAML components
Supports docments in both Markdown and Markdown-Extra formats
Easy to use
Lighweight
Optionally style markdown code snippets for syntax highlighting
Maintain cannonical markdown documents through your favourite git repository
Works with both Gutenberg and classic wordpress editors
How to use
Simply add the metaparsedown shortcode to your post, identifying the markdown document in the url attribute:
[metaparsedown url='https://gitlab.com/pagerange/docs/raw/master/markdown/test_markdown.md' /]
Optionally, parse and save markdown YAML front matter to the post_meta table by adding the meta attribute.
[metaparsedown url='https://gitlab.com/pagerange/docs/raw/master/markdown/test_markdown.md' meta="true" /]
Optionally, overwrite the post’s ‘post_title’ and ‘post_excerpt’ fields with YAML values by adding the overwrite attribute.
[metaparsedown url='https://gitlab.com/pagerange/docs/raw/master/markdown/test_markdown.md' meta="true" overwrite="true" /]
Support
Add issues at https://github.com/pagerange/metaparsedown-wordpress/issues.
Donate
Donate via Paypal at http://pagerange.com/projects/wordpress/metaparsedown
