Skip to content

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