--- Build strict file-reference rules for Markdown documents
-- @module formats.md.references

local md_references = {}

--- Return references marked by Markdown links or matching enclosures
-- @return table rules
function md_references.new()
	return {
		{ prefix = "%]%(", locations = true }, -- '](path)' begins an inline link target
		{ open = "`", close = "`", locations = true },
		{ open = "\"", close = "\"", locations = true },
		{ open = "'", close = "'", locations = true },
	}
end

return md_references
