[WordPress] 外掛分享: Markdown Shortcode

WordPress 外掛 Markdown Shortcode 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Markdown Shortcode」是 2015-09-09 上架。
  • 目前有 70 個安裝啟用數。
  • 上一次更新是 2025-09-21,距離現在已有 157 天。
  • 有 3 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

jhoppe |

外掛標籤

markdown | parsedown | shortcode | highlight.js |

內容簡介

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

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

[markdown]
#標題1

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

`javascript
源代碼
`
[/markdown]

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

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

原文外掛簡介

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!

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Markdown Shortcode」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.2.3 |

延伸相關外掛(你可能也想知道)

  • Parsedown Party 》這個外掛可以讓你在個別文章中使用Markdown語法。你可以在文章編輯器中使用切換按鈕來啟用Markdown模式。啟用後,它會將WordPress文章編輯器替換為CodeMirror...。
  • WP-Parsedown 》使用Parsedown Extra解析the_content,以展示Markdown Extra內容的HTML解析器。。
  • MetaParsedown 》此外掛可將 Markdown 與 Markdown-Extra 格式的文件匯入 WordPress 的文章和頁面,輸出為 HTML,並解析和儲存 YAML front matter 至 post_meta、標籤和 (可選...。
  • {eac}Doojigger Readme Extension for WordPress 》ault translation table, # Default translation table, authentication_required=Authentication Required, changelog=Changelog, configuration=Configurat...。

文章
Filter
Apply Filters
Mastodon