How do I convert an RTF string to a Markdown string (and back) (C# .NET Core, or JS)
问题 Question: How do I convert an RTF string to a Markdown string (and back) either in C# or JS, ideally without wrapping an exe? I have a legacy product that uses .NET's RichTextBox control. Forms that use it save their output in Microsoft's proprietary RTF format. Here is a small example of the output it can generate: {\\rtf1\\ansi\\ansicpg1252\\uc1\\htmautsp\\deff2{\\fonttbl{\\f0\\fcharset0 Times New Roman;}{\\f2\\fcharset0 GenericSansSerif;}}{\\colortbl\\red0\\green0\\blue0;\\red255\\green255