Skip to content

Instantly share code, notes, and snippets.

@newjam
Created August 8, 2019 00:31
Show Gist options
  • Save newjam/b246919a6302c0a09d83d2dbbb81dc61 to your computer and use it in GitHub Desktop.
Save newjam/b246919a6302c0a09d83d2dbbb81dc61 to your computer and use it in GitHub Desktop.
@newjam
Copy link
Author

newjam commented Aug 8, 2019

Just an example of extending redcarpets html renderer to add a prefix to hrefs in anchor tags.

I wanted to call super on line 11, but that's impossible in redcarpet because of vmg/redcarpet#51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment