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

Don't flatten links around images into autolinks #354

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

Conversation

gravypod
Copy link

Sometimes users of markdown will want to add a clickable image into their content. This is done using the following syntax:

[![alt text](http://.../img.png)](http://.../website)

This used to get turned into the following:

<http://.../website>

This commit prevents that from happening for links.

Sometimes users of markdown will want to add a clickable image into their
content. This is done using the following syntax:

```
[![alt text](http://.../img.png)](http://.../website)
```

This used to get turned into the following:

```
<http://.../website>
```

This commit prevents that from happening for links.
georgemp pushed a commit to georgemp/cmark-gfm that referenced this pull request Jul 16, 2024
Keep track of the number bytes added through expansion of reference
links and limit the total to the size of the input document. Always
allow a minimum of 100KB.

Unfortunately, cmark has no error handling, so all we can do is to
stop expanding reference links without returning an error. This should
never be an issue in practice though. The 100KB minimum alone should
cover all real-world cases.

See issue github#354.
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.

1 participant