Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Development/talagan_ReaImGui Markdown.lua
Original file line number Diff line number Diff line change
@@ -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&currency_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
Expand Down
3 changes: 1 addition & 2 deletions Development/talagan_ReaImGui Markdown/reaimgui_markdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down