kit-docs icon indicating copy to clipboard operation
kit-docs copied to clipboard

Left curly bracket in markdown seems to be unescapable

Open davej opened this issue 2 years ago • 3 comments

I am trying to put a left curly bracket { in my markdown docs but it doesn't seem to be possible. A few variations that I've tried all give the 500 error "abc is not defined".

{ abc }
\{ abc }
\{ ref \}
{ abc }
{ abc }

This doesn't error but explicitly outputs the characters "{" instead of showing a curly bracket:

\{ abc }

I tried reproducing the error on the online parser here but it seemed to work fine. Any idea how I would go about troubleshooting this?

davej avatar Feb 09 '23 01:02 davej

Ye there's some issues with braces right now because code blocks are inserted like so {@html `...`}. Can I see the code snippet you're trying to insert?

mihar-22 avatar Feb 09 '23 02:02 mihar-22

Markdown is a table like this:

| Function                                                                      | Description                                                                                                                                                                    |
| ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [addBrowserView({ ref, viewRef, })](<#nativewindow-addbrowserview()>)         | Adds a BrowserView to the reference BrowserWindow.                                                                                                                             |

Which gets rendered like this: CleanShot 2023-02-09 at 2 28 47@2x

You can see the output here (I have replaced { with &amp;#x007B; just so it will render without an error): https://next.todesktop.com/docs/API/client-core.nativewindow

davej avatar Feb 09 '23 02:02 davej

@mihar-22 just following up here. Any suggestions?

davej avatar May 04 '23 15:05 davej