Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug handling images with links. #50

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix bug handling images with links. #50

wants to merge 2 commits into from

Conversation

orium
Copy link
Contributor

@orium orium commented Jan 14, 2021

I guess as one of the first users I would get one of the first bugs 🙂

Before this commit links with images would get corrupted: the image would simply be removed.

This PR changes the link handling logic to not care about what's inside the text in a link and simply copy it verbatim from the source markdown, avoiding this and other similar problems were things are nested inside a link's text.

Merge #53 before this, so I can add an integration test for this.

@orium orium marked this pull request as draft January 16, 2021 16:16
Before this commit links with images would get corrupted: the image would
simply be removed.
This commit changes the link handling logic to not care about what's inside
the text in a link and simply copy it verbatim from the source markdown,
avoiding this and other similar problems were things are nested inside a link's
text.
@orium orium marked this pull request as ready for review January 28, 2021 18:43
@orium
Copy link
Contributor Author

orium commented Jan 28, 2021

Rebased on master. Should be ready for review now.

src/intralinks.rs Outdated Show resolved Hide resolved
src/intralinks.rs Outdated Show resolved Hide resolved
…scape logic.

This avoids potential issues in not escaping everything that needs escaping.
@metabrain
Copy link

Is this getting merged? I am running into this issue as well. Thanks.

@orium
Copy link
Contributor Author

orium commented May 13, 2021

@phaazon Can you take a look at this PR and PR #56 when you have some time please?

@orium
Copy link
Contributor Author

orium commented Sep 28, 2021

Hi @phaazon. This project had been pretty low in activity in the last few months. Let me know if you no longer want to maintain it. I'm happy to fork the project, work on it, and maintain it if you no longer wish to do so.

@orium
Copy link
Contributor Author

orium commented Nov 16, 2021

I've created my own project to create READMEs from rustdoc. It addresses the issue in this PR as well as PR #56 and other bugs: https://github.com/orium/cargo-rdme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants