From 9b614600c6936c07d31db20a284ca4e66433f45e Mon Sep 17 00:00:00 2001 From: sigoden Date: Tue, 31 Oct 2023 10:26:44 +0800 Subject: fix: uncorrected render in command mode (#188) --- src/render/markdown.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/render/markdown.rs') diff --git a/src/render/markdown.rs b/src/render/markdown.rs index 8513a43..8ae0a09 100644 --- a/src/render/markdown.rs +++ b/src/render/markdown.rs @@ -71,6 +71,10 @@ impl MarkdownRender { ) } + pub(crate) const fn wrap_width(&self) -> Option { + self.wrap_width + } + pub fn render(&mut self, text: &str) -> String { text.split('\n') .map(|line| self.render_line_mut(line)) -- cgit v1.2.3