-
$tw.wiki.renderText(
'text/html',
'text/vnd.tiddlywiki',
'<$iconify />',
); The nodes rendered in this way will always be wrapped by a p tag. Is there any way to remove it besides manually operating the nodes? @Jermolene ![]() |
Beta Was this translation helpful? Give feedback.
Answered by
Jermolene
Dec 16, 2023
Replies: 2 comments
-
It's not trivial. There is an open PR #7061 which deals with the problem. BUT I did not test the code with v5.3.x yet. The main problem will be. It's not really backwards compatible. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @oeyoews you can parse the text in "inline" mode which will not create any paragraph elements: $tw.wiki.renderText(
'text/html',
'text/vnd.tiddlywiki',
'<$iconify />',
{parseAsInline: true}
); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
oeyoews
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @oeyoews you can parse the text in "inline" mode which will not create any paragraph elements: