markdox icon indicating copy to clipboard operation
markdox copied to clipboard

Complex types are not escaped

Open wms opened this issue 10 years ago • 1 comments

If I have a complex type like Promise<Object>, it is passed verbatim to the Markdown layer as **Promise.<Object>** - this will be interpreted as an HTML tag <object>, and won't be rendered correctly.

Escaping this opening bracked should solve this (ie, **Promise.\<Object>**)

Fixed by https://github.com/cbou/markdox/pull/40

wms avatar Aug 21 '15 19:08 wms

It seems that it's only partially fixed: if you have a complex type like Promise<Object[]> it becomes **Promise.\<Array.<Object>>** where you still end up with a HTML tag <Object>.

Additional escaping would solve this: **Promise.\<Array.\<Object>>**

Dachaz avatar Apr 07 '16 09:04 Dachaz