diff --git a/Development/talagan_ReaImGui Markdown.lua b/Development/talagan_ReaImGui Markdown.lua index aba08930a..f3121eda1 100644 --- a/Development/talagan_ReaImGui Markdown.lua +++ b/Development/talagan_ReaImGui Markdown.lua @@ -1,14 +1,13 @@ --[[ @description ReaImGui Markdown : A Markdown rendering library for ReaImGui -@version 0.1.15 +@version 0.1.16 @author Ben 'Talagan' Babut @license MIT @donation https://www.paypal.com/donate/?business=3YEZMY9D6U8NC&no_recurring=1¤cy_code=EUR @links Forum Thread https://forum.cockos.com/showthread.php?t=301055 @changelog - - [Feature] Text renderer can output with line feeds - - [Optim] Factorize fonts with context scope instead of widget scope + - [Bug Fix] Crash if widget's first text is set to "" @metapackage @provides [nomain] talagan_ReaImGui Markdown/reaimgui_markdown/**/*.lua diff --git a/Development/talagan_ReaImGui Markdown/reaimgui_markdown.lua b/Development/talagan_ReaImGui Markdown/reaimgui_markdown.lua index 82529073d..5bec84357 100644 --- a/Development/talagan_ReaImGui Markdown/reaimgui_markdown.lua +++ b/Development/talagan_ReaImGui Markdown/reaimgui_markdown.lua @@ -61,8 +61,7 @@ function ReaImGuiMd:_initialize(ctx, id, options, partial_style) self.id = id self.options = { wrap = true, horizontal_scrollbar = true , width = 0, height = 0, additional_window_flags = 0 } self.style = deepCopy(ImGuiMdCore.DEFAULT_STYLE) - self.text = "" - self.ast = {} + self:setText("") self:setPartialStyle(partial_style) self:setOptions(options)