Typedoc: Angle brackets in object key names aren't escaped properly

Created on 23 May 2018  路  2Comments  路  Source: TypeStrong/typedoc

/** important object, document me */
const foo = {
    "<c-a>": "yes, I really used that as a key name",
}

gets turned into

[...]
<div class="tsd-signature tsd-kind-icon"><c-<wbr>6&gt;<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> =&nbsp;"yes, I really used that as a key name"</span></c-<wbr></div>
[...]

which renders as

a>: = "yes, I really used that as a key name"

rather than the desired

<c-a>: = "yes, I really used that as a key name"

I realise it's probably pretty niche, so I'd be happy to have a crack at fixing it myself if anyone could point me in the right direction.

Thanks!

bug help wanted

All 2 comments

Fixed in 0.15.1 :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KevinEady picture KevinEady  路  3Comments

euberdeveloper picture euberdeveloper  路  3Comments

topherfangio picture topherfangio  路  3Comments

mirismaili picture mirismaili  路  3Comments

ShadowManu picture ShadowManu  路  4Comments