Skip to content

Commit

Permalink
feat(markdown): add comment pair (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
f1rstlady authored May 16, 2024
1 parent 14e9737 commit b0b79e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nvim-autopairs/rules/basic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ local function setup(opt)
local quote = quote_creator(opt)
local bracket = bracket_creator(opt)
local rules = {
Rule("<!--", "-->", "html"):with_cr(cond.none()),
Rule("<!--", "-->", { "html", "markdown" }):with_cr(cond.none()),
Rule("```", "```", { "markdown", "vimwiki", "rmarkdown", "rmd", "pandoc" }),
Rule("```.*$", "```", { "markdown", "vimwiki", "rmarkdown", "rmd", "pandoc" }):only_cr():use_regex(true),
Rule('"""', '"""', { "python", "elixir", "julia", "kotlin" }):with_pair(cond.not_before_char('"', 3)),
Expand Down

0 comments on commit b0b79e4

Please sign in to comment.