Move link encoding function and make it easier to call (wikitext, b5b252b)

Just pass a VALUE (Ruby string) rather than a pointer and a length, and move the function up near the top of the file where it can be used without needing a forward declaration.

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

← Prepare for prepending internal link prefixes to internal links (wikitext, b796dcc)
Add spec for unterminated nowiki span in external link text (wikitext, 0380619) →

All snippets