From c10e578b6295e151394f8217155a319b2b4a4653 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:20:19 -0700 Subject: Take a no fill line's plain text from its nodes --- custom/extensions/about-render.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'custom') diff --git a/custom/extensions/about-render.lua b/custom/extensions/about-render.lua index fb5dee7..c498ad8 100644 --- a/custom/extensions/about-render.lua +++ b/custom/extensions/about-render.lua @@ -775,13 +775,7 @@ if has_lpeg then -- A no fill block keeps its lines as they are, so only the text of -- each one is wanted there, without its fonts. local function man_plain(text) - local parts = {} - for _, token in ipairs(man_inline_grammar:match(text)) do - if token.kind == "text" then - parts[#parts + 1] = token.text - end - end - return table.concat(parts) + return table.concat(plain_text(man_inline(text), {})) end -- A macro's arguments divide at blanks, except inside double quotes. -- cgit 2.11.1