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

Process all image/link URLs during github rewrites#416

Open
revin wants to merge 1 commit into
masterfrom
multi-github-replacement-html-processing
Open

Process all image/link URLs during github rewrites#416
revin wants to merge 1 commit into
masterfrom
multi-github-replacement-html-processing

Conversation

@revin

@revin revin commented Oct 6, 2017

Copy link
Copy Markdown
Collaborator

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

bcoe commented Oct 18, 2017

Copy link
Copy Markdown
Contributor

@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

bcoe commented Oct 18, 2017

Copy link
Copy Markdown
Contributor

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