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
11 changes: 3 additions & 8 deletions Development/talagan_ReaImGui Markdown.lua
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
--[[
@description ReaImGui Markdown : A Markdown rendering library for ReaImGui
@version 0.1.8
@version 0.1.9
@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] Added support for "action" links
- [Feature] Added support for "time seek" links
- [Bug Fix] Align all elements to frame padding
- [Bug Fix] Adapt checkbox size to context
- [Bug Fix] Adapt font size hierarchically
- [Bug Fix] Fixing line spacings for various elements
- [Rework] Reworked cascading style system
- [Cosmetics] Realigned checkboxes vertically
- [Hotfix] ImGui context switching not handled properly
@metapackage
@provides
[nomain] talagan_ReaImGui Markdown/reaimgui_markdown/**/*.lua
Expand Down
6 changes: 3 additions & 3 deletions Development/talagan_ReaImGui Markdown/reaimgui_markdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ end

function ReaImGuiMd:_createFontsIfNeeded(ctx)

self.font_ctx = nil

if self.fonts and self.ctx == self.font_ctx then return end
-- If already initialized in the same context, be happy
if self.fonts and ctx == self.font_ctx then return end

-- Else recreate all fonts in the new context
local fonts = {}
local style = self.style

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ local function ASTToImgui(ctx, ast, fonts, style, options)
local frameheight = ImGui.GetFrameHeight(ctx)
push_style(node)
ImGui.PushFont(ctx, node.style.font, node.style.font_size * 0.6)
local frameheight2 = ImGui.GetFrameHeight(ctx) - 3
local frameheight2 = ImGui.GetFrameHeight(ctx)
ImGui.SetCursorPosY(ctx, ImGui.GetCursorPosY(ctx) + (frameheight - frameheight2) * 0.5)
local b,v = ImGui.Checkbox(ctx, "##checkbox_" .. node.rand, node.attributes.checked)
ImGui.PopFont(ctx)
Expand Down