[WordPress] 外掛分享: Markdown Shortcode

首頁外掛目錄 › Markdown Shortcode
WordPress 外掛 Markdown Shortcode 的封面圖片
70+
安裝啟用
★★★★★
5/5 分(3 則評價)
205 天前
最後更新
問題解決
v0.2.3 上架:2015-09-09

內容簡介

這個 WordPress 外掛是一個簡單易用的 [markdown] 短碼,使用 parsedown 和 highlight.js 库實現,不需要進行任何配置。

只需要在 WordPress 編輯器中編寫以下格式:

[markdown]
#標題1

標題2
文本
____源代碼(底線x2或以上將被替換為空格)
____源代碼(底線x2或以上將被替換為空格)

`javascript
源代碼
`
[/markdown]

短碼中的內容將通過 parsedown 進行解析,並且源代碼片段會帶有語法高亮效果。

該插件同時在 github 上提供下載。如果您在使用過程中遇到任何問題,請在 GitHub 上進行反饋;如果您有好的建議或改進方案,也歡迎提交 Pull Request!

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.2.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Markdown Shortcode」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Damn simple [markdown]#via shortcode[/markdown] for wordpress.
This plugin uses parsedown and highlight.js. Zero configuration.
Write this into the editor:
[markdown]
#h1

h2
text
____source code (two ore more underscores will be replaced by empty spaces)
____source code (two ore more underscores will be replaced by empty spaces)

`javascript
source code
`
[/markdown]

and the shortcode content will be parsed with parsedown. Syntax highlighting will appear for the source codes.
This plugin is available at github, too.
Please report issues at github, pull requests are welcome, too!

延伸相關外掛

文章
Filter
Apply Filters
Mastodon