Skip to content

Commit

Permalink
feat(concealer): do not render roman numeral for >=4000
Browse files Browse the repository at this point in the history
  • Loading branch information
champignoom committed Nov 22, 2023
1 parent 95691ae commit b3fff34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/neorg/modules/core/concealer/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,9 @@ local roman_numerals = {
local function tostring_roman_lowercase(n)
if n >= 4000 then
-- too large to render
return ("RomanOf(%d)"):format(n)
return
end

local result = {}
local i = 1
while n > 0 do
Expand Down

0 comments on commit b3fff34

Please sign in to comment.