mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
Looking to create a custom renderer for unity TextMeshPro #322
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tylkomat on GitHub (Sep 7, 2019).
I'm trying to create a custom renderer for unity TextMeshPro. Somehow I'm already failing at the beginning. Could you give me some hints why don't see any output from the parser?
I was looking at the HtmlRenderer and created a TextMeshProRenderer.
I was starting with the HeadingRenderer:
TextMeshProObjectRenderer:
When I parse a string like
## test. I only see<size=+4></size>.@MihaZupan commented on GitHub (Sep 7, 2019):
What was the expected output?
## testparses to a single heading, so only the heading renderer will be used.Try testing with different input.
@tylkomat commented on GitHub (Sep 7, 2019):
The expected output would be
<size=+4>test</size>@MihaZupan commented on GitHub (Sep 7, 2019):
Ah, you don't have any inline renderers attached.
If you parse the markdown and look at the AST, you can check the
.Inlinecollection on the heading block.You need to add a
LiteralInlineRendererfor basic text.@tylkomat commented on GitHub (Sep 7, 2019):
I figured I would be something like this. Thanks.
If you don't want me to ask more questions without opening a new issue you may close it.