--- Apply markup to a file
---@param content string
---@param args { bold: boolean, italic: boolean, fg: string, bg: string }
---@return string
return function(content, args)
args = args or {}
if args.bold then
content = "" .. content .. ""
end
if args.italic then
content = "" .. content .. ""
end
local span_content = ""
if args.fg or args.bg then
if args.fg then
span_content = "foreground='" .. args.fg .. "'"
end
if args.bg then
span_content = " background='" .. args.bg .. "'"
end
content = "" .. content .. ""
end
return content
end