
外掛標籤
開發者團隊
原文外掛簡介
BonBon is a browser for the Markdown web. When it asks for a post or page with Accept: text/markdown, Praline sends it on to that page’s .md address. Browsers get the same HTML as always.
Beyond the Markdown itself, Praline gives BonBon everything it reads:
Front matter on every page: pubDate, description (a handwritten excerpt), link (the HTML page), rightMarginImage (the featured image), and urlPrev and urlNext for the arrows.
A table of contents at /.well-known/toc.opml: the posts by year, month and day, newest first, then the pages.
Arrows that run one way through the whole site: from the oldest post to the newest, on to the front page, then through the pages.
Site search, named in /.well-known/bonbon.json.
Content-Location, naming the .md file when Markdown is served at an address that isn’t one.
Only content anyone can read is served as Markdown or linked anywhere: published, not password protected, not hidden from search engines with Yoast SEO, and not the posts page. Category, tag, author and date archives keep answering with their HTML.
Praline needs no other plugin. It includes the parts of Markdown Alternate that turn posts into Markdown, and Markdown Alternate’s markdown_alternate_* filters all still work.
Praline sends nothing to any outside service.
Credits
Praline includes parts of these, each with its license kept beside the code in vendor-prefixed/:
Markdown Alternate 1.3.0, by Joost de Valk and Progress Planner, GPL-2.0-or-later. Its namespaces are renamed with Strauss, and each bundled file says so at its top.
league/html-to-markdown, by Colin O’Dell and Nick Cernis, MIT.
