genpark-streaming-markdown-code-block-tracker-skill
mcp
Warn
Health Warn
- No license — Repository has no license file
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 7 GitHub stars
Code Pass
- Code scan — Scanned 6 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
State-machine tracker detecting unclosed code blocks and formatting tags in live streaming LLM output
README.md
genpark-streaming-markdown-code-block-tracker-skill
Real-time state machine tracking unclosed markdown code fences, language tags, and formatting delimiters to prevent broken rendering in streaming chat interfaces.
Architecture
flowchart TD
Chunk[Stream Chunk] --> Tracker[StreamingMarkdownTracker]
Tracker --> Scanner[Triple & Single Backtick Parser]
Scanner --> State{Inside Code Block?}
State -->|Yes| AutoClose[Synthesize Closing Backticks]
State -->|No| Passthrough[Passthrough Clean Markdown]
Features
- Auto-Closure Synthesis: Guarantees syntax highlighters always receive closed code blocks.
- Language Detection: Extracts programming language specifiers.
- Pure Python: 100% Standard Library.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found