Skip to content

Fix #15, bold formatting with asterisks (``*'')#22

Open
aaaaalbert wants to merge 1 commit into
jtratner:masterfrom
aaaaalbert:fix-#15-bold-with-asterisks
Open

Fix #15, bold formatting with asterisks (``*'')#22
aaaaalbert wants to merge 1 commit into
jtratner:masterfrom
aaaaalbert:fix-#15-bold-with-asterisks

Conversation

@aaaaalbert

Copy link
Copy Markdown

This commit reenables emphasis highlighting for Markdown text that
is fenced by asterisks, like so.
It actually updates the definitions for regions markdownItalic,
markdownBold, markdownBoldItalic, and markdownCode from @tpope's
markdown.vim from 2010-05-21 (which I had lying around locally).

A quick local test indicates that the patch works as intended, albeit
with slight changes in appearance of formatted text:

Example -- previous style -- current style
word -- no formatting -- italic (as planned)
word -- italic -- italic
word -- no formatting -- bold
word -- italic -- bold (see below)

Formatting double-underscore as bold follows GitHub's style, see
https://help.github.com/articles/basic-writing-and-formatting-syntax/

Note: tpope/vim-markdown@a7dbc31 would
be the current up-to-date version of the base plugin, but there have
been changes to it that look incompatible with the rest of what's here
so I'm basing my work on the old version instead.

This commit reenables emphasis highlighting for Markdown text that
is fenced by asterisks, *like so*.
It actually updates the definitions for regions `markdownItalic`,
`markdownBold`, `markdownBoldItalic`, and `markdownCode` from @tpope's
`markdown.vim` from 2010-05-21 (which I had lying around locally).

A quick local test indicates that the patch works as intended, albeit
with slight changes in appearance of formatted text:

Example  -- previous style -- current style
*word*   -- no formatting  -- italic (as planned)
_word_   -- italic         -- italic
**word** -- no formatting  -- bold
__word__ -- italic         -- bold (see below)

Formatting double-underscore as bold follows GitHub's style, see
https://help.github.com/articles/basic-writing-and-formatting-syntax/

Note: tpope/vim-markdown@a7dbc31 would
be the current up-to-date version of the base plugin, but there have
been changes to it that look incompatible with the rest of what's here
so I'm basing my work on the old version instead.
@aaaaalbert

Copy link
Copy Markdown
Author

Oh, I just discovered the work in skystrife/vim-flavored-markdown@5f20f1f, making my PR somewhat redundant.

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