
內容簡介
Markdown for P2 外掛可讓您在狀態更新和評論中使用 Markdown 標記。
如果您使用 P2 時間有一段時間,您可能會發現自己開始輸入 HTML。由於在 P2 上發布(或應該完全)發生在佈景主題的前端,默認情況下沒有可用的格式選項。因此,如果您想格式化列表,例如,您可能會誘惑開始輸入 ul 和 li 標記。或者添加會使介面變得雜亂的格式化按鈕。
Markdown for P2 是另一個選擇,可讓您在發佈至 P2 網站時使用 Markdown 格式。詳細了解 Markdown,請造訪 John Gruber 的網站。
致敬
當然,Markdown 是 John Gruber 的作品。
這個外掛幾乎全部是由 Michel Fortin 完成的(根據 GPL 發布,他的版權已包含在檔案中),但並未打包到 WordPress 官方外掛程式中,且並非專門為此而設計。該代碼的功勞歸屬於……
使用 Adam Backstrom 的程式碼,在此Github Gist上加入了 Markdown 支援。
Markdown 標誌(在橫幅圖像中)歸功於 Dustin Curtis 。 非常漂亮,對吧?
注意事項
從技術上講,此外掛適用於任何 WordPress 網站 - 它只是檢查 the_content 和 comment_text 是否有 Markdown - 但此外掛僅在 P2 上進行了測試。如果您有興趣在非 P2 博客上使用 Markdown,我建議使用Markdown on Save,我認為它在這種情況下提供更好的使用者體驗。
外掛標籤
開發者團隊
原文外掛簡介
Markdown for P2 will enable Markdown formatting within your status updates and comments.
If you use P2 for any stretch of time you might find yourself in a situation where you start typing out HTML. Since posting from P2 happens (or should) entirely from the front end of the theme, by default formatting options aren’t available. So if you want to format a list, let’s say, you might be tempted to start typing out ul and li tags. Or perhaps add formatting buttons that might clutter up the interface.
Markdown for P2 is another option, and will allow you to use the Markdown format when you post to P2. Learn more about Markdown at John Gruber’s site.
Kudos
Markdown, of course, is a John Gruber production.
This plugin is almost entirely the work of Michel Fortin (released under the GPL, his copyright is included in the file), but wasn’t bundled into a neat plugin on WordPress dot org, and not specifically for this purpose. The credit for that code goes to…
Markdown support added using Adam Backstrom’s code via this Github Gist.
Markdown logo (in banner image) credit to Dustin Curtis. Lovely, isn’t it?
Note
Technically this plugin will work with any WordPress site — it simply checks the_content and comment_text for Markdown — but this plugin is really only tested with P2. If you’re interested in using Markdown on your non-P2 blog, I’d recommend Markdown on Save which I think will provide a better user experience in that situation.
