diff --git a/lua/MarkdownPreviewer/app.lua b/lua/MarkdownPreviewer/app.lua index 4ac670e..ce05f25 100644 --- a/lua/MarkdownPreviewer/app.lua +++ b/lua/MarkdownPreviewer/app.lua @@ -47,6 +47,14 @@ function app:init(on_exit) }) end +function app:base(content) + if self.channel == nil then + return + end + + chansend(self.channel, Message({base = content})) +end + function app:show(content) if self.channel == nil then return