Skip to content

Strikethrough, italic and bold problems #59

@c-c-k

Description

@c-c-k

Hello,
I have started using this plugin for markdown with nvim-treesitter and noticed that strikethrough ~~STRIKETHROUGH~~ , italic *ITALIC* and bold **BOLD** seem to work badly.

solarized-normal

STRIKETHROUGH

This one seems to be a bug, the line defining the strikethrough highlight is:

syntax['Strikethrough'] = {fg=colors.base01,strikethrough=true}

instead of

syntax['Strikethrough'] = {fg=colors.base01,style='strikethrough'}

It is later used in syntax['@text.strike'] = syntax['Strikethrough'].

ITALICS

This one might be a bug but I'm not sure, the line defining the italic highlight is:

syntax['@text.emphasis'] = {fg=colors.base1,bg=colors.base03,style='bold'}

instead of

syntax['@text.emphasis'] = {fg=colors.base1,bg=colors.base03,style=utils.italics()}

ITALICS AND BOLD

Both italics and bold set bg=colors.base03, this doesn't seem like a bug but it is a little ugly, maybe this should be removed?

Other solarized variants

The other solarized variants do not contain the -- Text {{{ section with the syntax['@text... highlight definitions, I'm not sure if this is intentional or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions