From 435304eda104267a6cedcfd170a1604a2c31a9f0 Mon Sep 17 00:00:00 2001 From: BenTalagan Date: Thu, 11 Dec 2025 15:57:21 +0100 Subject: [PATCH] Update ReaImGui Markdown v0.1.15 > v0.1.16 --- Development/talagan_ReaImGui Markdown.lua | 5 ++--- Development/talagan_ReaImGui Markdown/reaimgui_markdown.lua | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) 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)