markdown-it-sup
markdown-it-sup copied to clipboard
How to render reference-style links inside `<sup>`?
Hi,
First of all thank you for this super easy-to-use plugin. It has been a joy to use it without any issues and it empowers privacy.sexy.
I'm using a lot of reference-style links and I'd like to render them inside <sup>
blocks just like wikipedia does to not disturb to reading experience.
I did some research, see that this can be achieved through markdown-it-sup
but this require caret syntax which I want to avoid.
Is there away to achieve this? Did anyone have the same issue? How did you resolve this?
Note: This is how I extend markdown rendering as of today.
For anyone looking for solution, I achieved this by:
- Enabling HTML content in markdown (through
html: true
option). - I've done implemented a preprocessor that wraps bracket references inside
<sup></sup>
, seeInlineReferenceLabelsToSuperscriptConverter.ts
.