From 53896d2cc514fe1add3f6bbfb25463aee040edb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Star=C3=BD=20Novotn=C3=BD?= Date: Mon, 11 Mar 2024 17:41:04 +0100 Subject: [PATCH] Automatically use `writer->undosep` at the end of a slice --- markdown.dtx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/markdown.dtx b/markdown.dtx index b6515de8e..654f8f584 100644 --- a/markdown.dtx +++ b/markdown.dtx @@ -25394,6 +25394,7 @@ function M.writer.new(options) if attributes["#" .. self.slice_end_identifier] ~= nil and self.slice_end_type == "^" then if self.is_writing then + table.insert(buf, self.undosep()) table.insert(buf, tear_down_attributes()) end self.is_writing = false @@ -25445,6 +25446,7 @@ function M.writer.new(options) if attributes["#" .. self.slice_end_identifier] ~= nil and self.slice_end_type == "$" then if self.is_writing then + table.insert(buf, self.undosep()) table.insert(buf, tear_down_attributes()) end self.is_writing = false