pandemonium_demo_projects/misc/markdown_renderer/CustomRenderer.gd

15 lines
273 B
GDScript3
Raw Normal View History

extends TextEdit
func _ready():
var f : File = File.new()
var mdr : CustomMarkdownRenderer = CustomMarkdownRenderer.new()
mdr.render_type = MarkdownRenderer.RENDERER_TYPE_CUSTOM
f.open("res://TEST.md", File.READ)
text = mdr.render(f.get_as_text())
f.close()