[WordPress] 外掛分享: MetaParsedown

首頁外掛目錄 › MetaParsedown
全新外掛
安裝啟用
尚無評分
2353 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.0+ v1.0.0 上架:2019-11-04

內容簡介

此外掛可將 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

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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

文章
Filter
Mastodon