fix/nested-emphasis-markdown
Showdown cannot natively process nested emphasis with the same delimiter (e.g. *outer *inner* outer* or **outer **inner** outer**), rendering them as broken text. Add a pre-processing step that detects nesting using stack-based pairing with CommonMark-like flanking rules: - Nested *...* inside *...*: promote inner to ** (bold-inside-italic) - Nested **...** inside **...**: strip inner ** (redundant bold) Adds showdown-emphasis.js combining the underscore extension with the new fixNestedEmphasis pre-processor, called in messageFormatting before fixMarkdown. Includes 27 Playwright e2e tests. Closes #5500
SillyTavern
LLM Frontend for Power Users
Resources
- GitHub: https://github.com/SillyTavern/SillyTavern
- Docs: https://docs.sillytavern.app/
- Discord: https://discord.gg/sillytavern
- Reddit: https://reddit.com/r/SillyTavernAI
License
AGPL-3.0
Languages
JavaScript
88.7%
HTML
8.1%
CSS
2.8%
Less
0.3%