Skip to content

Add optional href verifier #3

Description

@numpad

Hardcoding links/hrefs is fine, but there should be an optional feature to ensure (internal) links are not dead.

Consider the following scenario:

  • index.lua contains a hyperlink to /contact/ (→ contact.lua).
  • some time later, the file contact.lua is renamed to contact-us.lua.
  • however, the hyperlink in index.lua was never updated and is dead now.

With some kind of validation in place, this should fail during build, and print an error.

a {
  "Contact Us",
  href=luatml_link('contact.lua'),
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions