{"id":365135,"date":"2026-09-10T05:44:49","date_gmt":"2026-09-10T05:44:49","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/ozeki-markdown-documents\/"},"modified":"2026-09-10T05:44:23","modified_gmt":"2026-09-10T05:44:23","slug":"ozeki-markdown-documents","status":"publish","type":"plugin","link":"https:\/\/uz.wordpress.org\/plugins\/ozeki-markdown-documents\/","author":23550769,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1.1","stable_tag":"0.1.1","tested":"7.1","requires":"6.4","requires_php":"8.1","requires_plugins":null,"header_name":"Ozeki Markdown Documents","header_author":"Hiroshi Ozeki","header_description":"Manage Markdown as independent, reusable WordPress documents.","assets_banners_color":"","last_updated":"2026-09-10 05:44:23","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/ozekihiroshi\/ozeki-markdown-documents","header_author_uri":"https:\/\/github.com\/ozekihiroshi","rating":0,"author_block_rating":0,"active_installs":0,"downloads":69,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.1.1":{"tag":"0.1.1","author":"ozekihiroshi","date":"2026-09-10 05:44:23","revision":3689326}},"upgrade_notice":{"0.1.1":"<p>Review fixes for contextual notices and WordPress.org translation delivery.\nJapanese UI requires a separately available language pack.<\/p>","0.1.0":"<p>First public release.<\/p>"},"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.1"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[186892,6941,6566,4608,166215],"plugin_category":[],"plugin_contributors":[276902],"plugin_business_model":[],"class_list":["post-365135","plugin","type-plugin","status-publish","hentry","plugin_tags-asciimath","plugin_tags-documentation","plugin_tags-latex","plugin_tags-markdown","plugin_tags-mermaid","plugin_contributors-ozekihiroshi","plugin_committers-ozekihiroshi"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/ozeki-markdown-documents.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Ozeki Markdown Documents keeps Markdown as the canonical document source.\nRendered HTML is generated output that can be safely rebuilt at any time.<\/p>\n\n<p>Each Markdown document is an independent WordPress object with its own title,\nstatus, author, revisions, permalink, and stable numeric ID. A published\ndocument can be displayed directly or reused from another post or page with a\nshortcode.<\/p>\n\n<p>Features include:<\/p>\n\n<ul>\n<li>A dedicated Markdown document editor.<\/li>\n<li>Side-by-side editing and safe live preview.<\/li>\n<li>Exact UTF-8 <code>.md<\/code> and <code>.markdown<\/code> import and export.<\/li>\n<li>WordPress revisions for the canonical Markdown source.<\/li>\n<li>CommonMark and GitHub-Flavored Markdown rendering.<\/li>\n<li>Tables, task lists, fenced code blocks, and strikethrough.<\/li>\n<li>Locally bundled Mermaid diagram rendering.<\/li>\n<li>Locally bundled KaTeX rendering for LaTeX and beginner-friendly AsciiMath.<\/li>\n<li>An explicit Copy LaTeX control without changing mixed-selection copying.<\/li>\n<li>Interactive Markdown, Mermaid, and mathematics example libraries.<\/li>\n<li>Public document permalinks and shortcode reuse.<\/li>\n<\/ul>\n\n<p>The rendering pipeline escapes raw HTML, rejects unsafe links, applies the\nWordPress HTML allow-list, and keeps invalid diagram or formula source visible\ninstead of executing it. Browser libraries are bundled locally; the plugin\ndoes not require a CDN or send document content to a third-party service.<\/p>\n\n<p>This plugin does not replace the Gutenberg editor. It provides a separate,\nportable Markdown document model that can be referenced where needed.<\/p>\n\n<p>Source code and reproducible build instructions are maintained at:<\/p>\n\n<p>https:\/\/github.com\/ozekihiroshi\/ozeki-markdown-documents<\/p>\n\n<h3>Quick Start<\/h3>\n\n<ol>\n<li>Open Markdown Documents &gt; Add New Markdown Document.<\/li>\n<li>Enter a title and write Markdown in the left pane.<\/li>\n<li>Check the safe rendered output in the right pane.<\/li>\n<li>Save a draft or publish the document.<\/li>\n<li>Use its permalink directly, or embed a published document in another post\nor page with <code>[ozeki_markdown_document id=\"123\"]<\/code>.<\/li>\n<\/ol>\n\n<p>The Markdown Guide, Mermaid Examples, and Math Examples pages provide editable\npractice areas. Changes made in a guide are not saved. The explicit create\nbutton creates a new draft and never overwrites an existing document.<\/p>\n\n<h3>Supported Markdown and Extensions<\/h3>\n\n<p>The server-side renderer supports CommonMark and GitHub-Flavored Markdown,\nincluding headings, lists, links, tables, task lists, fenced code blocks, and\nstrikethrough.<\/p>\n\n<p>Use a fenced <code>mermaid<\/code> block for diagrams:<\/p>\n\n<pre><code>~~~mermaid\nflowchart LR\n    Source[Markdown] --&gt; Preview[Preview]\n~~~\n<\/code><\/pre>\n\n<p>Use a prefixed inline code span or fenced block for formulas:<\/p>\n\n<ul>\n<li>Inline AsciiMath: <code>`asciimath:a\/b`<\/code><\/li>\n<li>Inline LaTeX: <code>`math:\\frac{a}{b}`<\/code><\/li>\n<li>Display AsciiMath: an <code>asciimath<\/code> fenced block<\/li>\n<li>Display LaTeX: a <code>math<\/code> or <code>latex<\/code> fenced block<\/li>\n<\/ul>\n\n<p>AsciiMath is converted only for derived display output. The stored Markdown is\nnot rewritten. Hover over or focus a rendered formula to reveal Copy LaTeX.\nCopying a mixed selection of ordinary text and formulas retains normal browser\ncopy behavior.<\/p>\n\n<h3>Security and Privacy<\/h3>\n\n<p>Raw HTML is escaped. Unsafe link protocols are rejected, and generated HTML is\nfiltered through the WordPress HTML allow-list. Mermaid runs with strict\nsecurity settings and HTML labels disabled. KaTeX runs with trust disabled,\nstrict error handling, and size and expansion limits. Invalid diagrams and\nformulas remain readable as source instead of being executed.<\/p>\n\n<p>The plugin does not collect telemetry, track users, contact an analytics\nservice, or send document content to a third party. Mermaid, KaTeX, AsciiMath,\nJavaScript, CSS, and fonts are bundled locally; no CDN is required. Ordinary\nWordPress administrators remain responsible for deciding who may edit or view\ntheir site content.<\/p>\n\n<h3>Stored Data and Uninstall<\/h3>\n\n<p>Documents are stored as the dedicated public <code>ozmd_document<\/code> custom post type. The\ncanonical Markdown source and generated render cache are stored as post meta.\nWordPress revisions preserve the Markdown source. Imported original filenames\nare retained only to suggest an export filename.<\/p>\n\n<p>Deactivation and uninstall intentionally leave documents, revisions, and\nassociated post metadata unchanged. This prevents an accidental plugin removal\nfrom destroying authored content. Delete documents through WordPress when\npermanent removal is desired.<\/p>\n\n<h3>Third-party Libraries<\/h3>\n\n<p>The release includes League CommonMark under BSD-3-Clause and Mermaid, KaTeX,\nand asciimath-parser under MIT-compatible licenses. License files and\n    third-party-notices.txt are included in the plugin. Human-readable integration\nsource, lock files, and reproducible build tools are maintained in the public\nGitHub repository linked above.<\/p>\n\n<h3>Current Scope<\/h3>\n\n<p>This release uses a dedicated Markdown document editor; Gutenberg is available\nfor placing shortcodes but is not the canonical Markdown editor. The plugin\ndoes not provide cloud synchronization, collaborative editing, Git publishing,\nor remote AI processing. Imported files must be valid UTF-8 <code>.md<\/code> or\n    .markdown files no larger than 5 MiB.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin ZIP from Plugins &gt; Add New &gt; Upload Plugin, or install it from the WordPress Plugin Directory.<\/li>\n<li>Activate Ozeki Markdown Documents.<\/li>\n<li>Open Markdown Documents &gt; Markdown Guide.<\/li>\n<li>Create a blank document or import a UTF-8 <code>.md<\/code> file.<\/li>\n<li>Publish the document after checking the live preview.<\/li>\n<\/ol>\n\n<p>To reuse a published document in a post or page, replace <code>123<\/code> with its ID:<\/p>\n\n<pre><code>[ozeki_markdown_document id=\"123\"]\n<\/code><\/pre>\n\n<!--section=faq-->\n<dl>\n<dt id=\"is%20the%20markdown%20source%20preserved%3F\"><h3>Is the Markdown source preserved?<\/h3><\/dt>\n<dd><p>Yes. Markdown remains the canonical source. Rendered HTML, diagrams, and\nformula output are derived and can be regenerated.<\/p><\/dd>\n<dt id=\"does%20uninstall%20delete%20my%20documents%3F\"><h3>Does uninstall delete my documents?<\/h3><\/dt>\n<dd><p>No. Authored Markdown documents, revisions, and associated post metadata are\nintentionally preserved. Delete documents through WordPress when permanent\nremoval is desired.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20load%20diagram%20or%20math%20libraries%20from%20a%20cdn%3F\"><h3>Does the plugin load diagram or math libraries from a CDN?<\/h3><\/dt>\n<dd><p>No. Pinned Mermaid, KaTeX, and AsciiMath assets are bundled locally. Pages\nwithout diagrams or formulas do not load the corresponding browser assets.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20send%20markdown%20or%20usage%20data%20to%20another%20service%3F\"><h3>Does the plugin send Markdown or usage data to another service?<\/h3><\/dt>\n<dd><p>No. It contains no telemetry or analytics and does not send document content\nto an external service. Browser rendering dependencies are served locally.<\/p><\/dd>\n<dt id=\"is%20raw%20html%20supported%3F\"><h3>Is raw HTML supported?<\/h3><\/dt>\n<dd><p>Raw HTML is displayed as escaped text. This is intentional: Markdown remains\nportable while the rendered result follows a restrictive safety boundary.<\/p><\/dd>\n<dt id=\"who%20can%20create%20and%20import%20markdown%20documents%3F\"><h3>Who can create and import Markdown documents?<\/h3><\/dt>\n<dd><p>Users need the standard WordPress capability to edit posts. Export and editing\nactions also check access to the specific document and use WordPress nonces for\nstate-changing requests.<\/p><\/dd>\n<dt id=\"is%20the%20interface%20translated%3F\"><h3>Is the interface translated?<\/h3><\/dt>\n<dd><p>Interface strings are translation-ready. WordPress.org language packs provide\ntranslations when available; this ZIP does not bundle translation catalogs.\nJapanese translation source remains in the public repository for contribution\nto translate.wordpress.org. Until a language pack is available, interface text\nfalls back to English. Editable Markdown, Mermaid and formula examples remain\nportable source code.<\/p><\/dd>\n<dt id=\"can%20i%20import%20and%20export%20normal%20markdown%20files%3F\"><h3>Can I import and export normal Markdown files?<\/h3><\/dt>\n<dd><p>Yes. Imports accept UTF-8 <code>.md<\/code> and <code>.markdown<\/code> files up to 5 MiB and create a\nnew draft. Export returns only the canonical Markdown source.<\/p><\/dd>\n<dt id=\"how%20do%20i%20write%20formulas%3F\"><h3>How do I write formulas?<\/h3><\/dt>\n<dd><p>Use an inline code span such as <code>asciimath:a\/b<\/code> or\n    math:\\frac{a}{b}. For displayed formulas, use an <code>asciimath<\/code>, <code>math<\/code>, or\n    latex fenced code block. The Math Examples page provides editable examples.<\/p><\/dd>\n<dt id=\"how%20do%20i%20write%20mermaid%20diagrams%3F\"><h3>How do I write Mermaid diagrams?<\/h3><\/dt>\n<dd><p>Use a fenced code block whose language is <code>mermaid<\/code>. The Mermaid Examples page\ncontains flowchart, sequence, state, class, ER, Gantt, and pie examples.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1.1<\/h4>\n\n<ul>\n<li>Limit document operation notices to Markdown document screens.<\/li>\n<li>Limit missing-dependency guidance to the Plugins screen.<\/li>\n<li>Use WordPress.org language packs instead of bundled translation loading.<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>First public release.<\/li>\n<li>Added canonical Markdown documents, revisions, import\/export, permalinks, and shortcode reuse.<\/li>\n<li>Added safe side-by-side live preview with CommonMark and GitHub-Flavored Markdown.<\/li>\n<li>Added locally bundled Mermaid, LaTeX, and AsciiMath rendering.<\/li>\n<li>Added interactive Markdown, Mermaid, and mathematics guides.<\/li>\n<\/ul>","raw_excerpt":"Manage Markdown as reusable WordPress documents with live preview, import\/export, Mermaid diagrams, and LaTeX or AsciiMath formulas.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/uz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/365135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/uz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/uz.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/uz.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=365135"}],"author":[{"embeddable":true,"href":"https:\/\/uz.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ozekihiroshi"}],"wp:attachment":[{"href":"https:\/\/uz.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=365135"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/uz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=365135"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/uz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=365135"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/uz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=365135"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/uz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=365135"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/uz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=365135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}