Skip to content

Commit

Permalink
fix(deps): Correct include to work with current LuaRocks packages (#1357
Browse files Browse the repository at this point in the history
)
  • Loading branch information
alerque authored Apr 9, 2022
1 parent f5a95f0 commit b584be5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lua-libraries/lunamark/entities.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

local M = {}

local utf8=require("utf8")
utf8_char = utf8.char
local luautf8=require("lua-utf8")
utf8_char = luautf8.char

local character_entities = {
["quot"] = 0x0022,
Expand Down
4 changes: 2 additions & 2 deletions lua-libraries/lunamark/reader/markdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ local P, R, S, V, C, Cg, Cb, Cmt, Cc, Ct, B, Cs =
lpeg.Cmt, lpeg.Cc, lpeg.Ct, lpeg.B, lpeg.Cs
local lpegmatch = lpeg.match
local expand_tabs_in_line = util.expand_tabs_in_line
local utf8 = require("utf8")
local luautf8 = require("lua-utf8")

local M = {}

Expand All @@ -20,7 +20,7 @@ local rope_to_string = util.rope_to_string
-- Normalize a markdown reference tag. (Make lowercase, and collapse
-- adjacent whitespace characters.)
local function normalize_tag(tag)
return utf8.lower(gsub(rope_to_string(tag), "[ \n\r\t]+", " "))
return luautf8.lower(gsub(rope_to_string(tag), "[ \n\r\t]+", " "))
end

------------------------------------------------------------------------------
Expand Down

0 comments on commit b584be5

Please sign in to comment.