Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aaaaalbert
Copy link

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
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.

None yet

1 participant