• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Raise range errors for invalid link text (wikitext, b5ad8d6)

Created 2/1/2008, updated 3/5/2024
  • snippets

Raise an error if link text includes ">" or "<". In practice this should never happen because the only intended caller is the Wikitext::Parser itself, but put this in just in case.

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Sanitize link targets when rolling back failed internal links (wikitext, 8da0a08)
First version of link sanitization function (wikitext, 0a857f1) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).