Skip to content
MeanderingProgrammer edited this page Aug 8, 2024 · 11 revisions

Links

Raw data being used:

# Links

- ![Image](test.png)
- [Markdown File](test.md)
- [Python File](test.py)
- [Website](https://test.com)
- [[wikilink]]
- [[wikilink|Uncyclolink Alias]]
- [Reference][example]

Default

require('render-markdown').setup({
    link = {
        enabled = true,
        image = '󰥶 ',
        hyperlink = '󰌹 ',
        highlight = 'RenderMarkdownLink',
        custom = {
            web = { pattern = '^http[s]?://', icon = '󰖟 ', highlight = 'RenderMarkdownLink' },
        },
    },
})

Image Icon

require('render-markdown').setup({
    link = { image = '󰋵 ' },
})

Link Icon

require('render-markdown').setup({
    link = { hyperlink = '󰌷 ' },
})

Custom Python Icon

require('render-markdown').setup({
    link = {
        custom = {
            python = { pattern = '%.py$', icon = '󰌠 ', highlight = 'RenderMarkdownLink' },
        },
    },
})
Clone this wiki locally