blockwatch 0.2.26

Language agnostic linter that keeps your code and documentation in sync and valid
Documentation
1
2
3
4
5
6
7
function validate(ctx, content)
  local expected = ctx.attrs["expected"]
  if content ~= expected then
    return "expected '" .. expected .. "' but got '" .. content .. "'"
  end
  return nil
end