Replies: 2 comments 13 replies
-
@bfirems I don't really understand your question.
|
Beta Was this translation helpful? Give feedback.
-
Yes it only renders once to html, but it renders 2 li tags, one for ol because of the 1. and then another for the -, which renders an li under a ul. Since I'm overriding ul this isn't going to work. If you notice in my example it render two  C which is just me simulating a citation. What we are doing is rendering citation links as they pop up in the text, which could be anywhere in the markdown essentially. The 2 options I've found are either using remarkGfm and rendering citation tags (i.e. [^1]). So basically we would take our text and replace [789, 999, etc] with [^1][^2]. The problem with this solution is that if you don't have the footnote section it doesn't render. Our footnote section is a drawer than opens up once you click a citation. The other solution is just creating our own custom plugin. I haven't found good documentation on how to do that yet. Unless you have any other suggestions. |
Beta Was this translation helpful? Give feedback.
-
I'm able to render my html at the end of say a p or li tag, however the issue arises when it generates more than one tag, it will render twice. Wondering if there is a way to render my html at the end, only once no matter what. I can't do it right after because it's a citation link that needs to be inside of the li (if it's the last thing rendered) to display properly.
Beta Was this translation helpful? Give feedback.
All reactions