Skip to content

Commit

Permalink
fix luacheck global variable issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lostenderman committed Jun 16, 2024
1 parent eca3511 commit 1ca9ea0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions markdown.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -28556,6 +28556,9 @@ function M.reader.new(writer, options)
-- List of references defined in the document
local references

-- List of note references defined in the codument
parsers.rawnotes = {}

% \end{macrocode}
% \par
% \begin{markdown}
Expand Down Expand Up @@ -28603,7 +28606,7 @@ function M.reader.new(writer, options)
% \end{markdown}
% \begin{macrocode}
function self.lookup_note_reference(tag)
return rawnotes[self.normalize_tag(tag)]
return parsers.rawnotes[self.normalize_tag(tag)]
end

parsers.title_s_direct_ref = parsers.squote
Expand Down Expand Up @@ -28678,8 +28681,8 @@ function M.reader.new(writer, options)

parsers.note_opening = #(parsers.circumflex * parsers.shortcut_link)
* Cg(Cc("note_inline"), "link_type")
parsers.raw_note_opening = #( parsers.lbracket

parsers.raw_note_opening = #( parsers.lbracket
* parsers.circumflex
* parsers.link_label_body
* parsers.rbracket)
Expand Down Expand Up @@ -30149,7 +30152,6 @@ end
% \end{markdown}
% \begin{macrocode}
references = {}
rawnotes = {}
local opt_string = {}
for k, _ in pairs(defaultOptions) do
local v = options[k]
Expand Down Expand Up @@ -31869,6 +31871,8 @@ M.extensions.notes = function(notes, inline_notes)
local parsers = self.parsers
local writer = self.writer

local rawnotes = parsers.rawnotes

if inline_notes then
local InlineNote
= parsers.circumflex
Expand Down

0 comments on commit 1ca9ea0

Please sign in to comment.