local git_ref = 'v8.12.0'
local modrev = '8.12.0'
local specrev = '1'

local repo_url = 'https://github.com/MeanderingProgrammer/render-markdown.nvim'

rockspec_format = '3.0'
package = 'render-markdown.nvim'
version = modrev ..'-'.. specrev

description = {
  summary = 'Plugin to improve viewing Markdown files in Neovim',
  detailed = '',
  labels = { 'lua', 'markdown', 'neovim', 'neovim-plugin', 'nvim', 'nvim-plugin' } ,
  homepage = 'https://github.com/MeanderingProgrammer/render-markdown.nvim',
  license = 'MIT'
}

dependencies = { 'lua >= 5.1', 'tree-sitter-markdown', 'tree-sitter-latex', 'nvim-web-devicons' } 

test_dependencies = { }

source = {
  url = repo_url .. '/archive/' .. git_ref .. '.zip',
  dir = 'render-markdown.nvim-' .. '8.12.0',
}

if modrev == 'scm' or modrev == 'dev' then
  source = {
    url = repo_url:gsub('https', 'git')
  }
end

build = {
  type = 'builtin',
  copy_directories = { 'doc', 'plugin' } ,
}
