Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Process all image/link URLs during github rewrites #416

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

revin
Copy link
Collaborator

@revin revin commented Oct 6, 2017

The github URL-rewriting markdown-it plugin was accidentally only doing a single URL replacement per html_block; this change recursively processes every occurrence instead.

Fixes #415.

@bcoe
Copy link
Contributor

bcoe commented Oct 18, 2017

@revin 👋 I haven't had a chance to dig into this yet, but I'd be interested to see if we can replace the regex with //g and avoid the recursive step -- I bet we can figure something out.

@bcoe
Copy link
Contributor

bcoe commented Oct 18, 2017

as an alternative, if we can't, we could switch the recursive step to a stack structure and at least eliminate the chance of a stack overflow.

@bcoe bcoe added the triaged label Oct 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants