Replies: 2 comments
-
Yes, this is possible. To do this, you'd want to listen to an event on the converter, probably Note: You'll have to provide a negative priority (-300 or lower) so that your listener happens after the resolve links listener today. |
Beta Was this translation helpful? Give feedback.
-
Thank you, I can't believe I didn't think of that as I'm already doing
exactly that with codefences 🤦🏼♀️... will get back to you but I think
this discussion can be closed.
…On Fri, Apr 11, 2025, 23:40 Gerrit Birkeland ***@***.***> wrote:
Yes, this is possible. To do this, you'd want to listen to an event on the
converter, probably Converter.EVENT_RESOLVE_END so that it happens after
the link has been resolved, and check the content of the comment
<https://typedoc.org/api/classes/Models.Reflection.html#comment>
property. The comment has a summary and blockTags[i].content properties
that you'll want to loop over looking for elements with .kind ===
"inline-tag", and replace their .text property with what you want to
render.
Note: You'll have to provide a negative priority (-300 or lower) so that
your listener happens after the resolve links listener today.
—
Reply to this email directly, view it on GitHub
<#2931 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACOHZTSU7JY3ZT6MBNDYIE32ZAZEPAVCNFSM6AAAAAB2TVRAGGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEOBQHA4DENA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
So, imagine you had a Custom Element like this
Currently this is being rendered as "MyCE#foo". I would like to write a plugin that changes this to a css-selector-like syntax, something like "<my-ce[foo]>", ideally in a
<code>
tag. Is this possible?Beta Was this translation helpful? Give feedback.
All reactions