hughsk / hughsk/markdown-tree

image url from CDN is converted to a <p> rather than <img>

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
15
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Hi, I know you haven't touched this module in a while but it does almost exactly what I need so I thought I'd ask for help anyway.

I have an image hosted on a CDN which I am displaying in my Markdown using the link.
When I run the Markdown file through the converter it is converting the link to a paragraph rather than an image. ie.

```
"tokens": [
"type": paragraph,
"text": "![alt](http://addressToImage.com)"
]
```

Is there a way for the converter to recognise it is an image?

Thanks

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.