hexojs / hexojs/hexo-renderer-marked
Parse figcaption contents
- Dominant language
- JavaScript
- Stars
- 183
- Forks
- 93
- PR merge metrics
- No merged PRs in 30d
Description
### Check List
- [X] I have already read README.
- [X] I have already searched existing issues.
- [X] I have already searched existing pull requrests.
### Feature Request
When using the `figcaption` option,
```
marked:
figcaption: true
```
generating images as
```
...
```
the figcaptions are usually intended to be rendered in some fancy way, including links or styles, etc.
I think it would be useful to parse its contents, changing from:
```
return `${out}${text}`;
```
to
```
return `${out}${marked.parse(text)}`;
```
If the figcaption has no special markdown, there is no difference. If we include some kind of markdown content, it will be parsed.
### Additional context
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.