Skip to content

Fix pandocPipeTable highlighting #157

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

Merged
merged 1 commit into from
Sep 25, 2015

Conversation

jez
Copy link
Contributor

@jez jez commented Sep 25, 2015

For some of my Markdown projects, I use kramdown which has support
for block inline attribute lists. The code to check for piped tables
doesn't quite play nicely when I try to add a class to it. For example,
in the following snippit the table never ends according to the current
code:

| Heading 1         | Heading 2 |
| ---------         | --------- |
| vim-pandoc-syntax | is        |
| so                | great     |
{:sparkling}

## Not Styled as Heading!

Oh noes :'(

This fixes the problem by just checking to see if there's a {
character there.

For some of my Markdown projects, I use kramdown which has support
for block inline attribute lists. The code to check for piped tables
doesn't quite play nicely when I try to add a class to it. For example,
in the following snippit the table never ends according to the current
code:

```markdown
| Heading 1         | Heading 2 |
| ---------         | --------- |
| vim-pandoc-syntax | is        |
| so                | great     |
{:sparkling}

## Not Styled as Heading!

Oh noes :'(
```

This fixes the problem by just checking to see if there's a `{`
character there.

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Fri Sep 25 02:38:19 2015 -0400
#
# On branch fix/pandoc-pipe-tables
# Changes to be committed:
#	modified:   syntax/pandoc.vim
#
@jez jez force-pushed the fix/pandoc-pipe-tables branch from 9d02949 to 9be8158 Compare September 25, 2015 06:41
fmoralesc added a commit that referenced this pull request Sep 25, 2015
Fix pandocPipeTable highlighting
@fmoralesc fmoralesc merged commit 75651d2 into vim-pandoc:master Sep 25, 2015
@fmoralesc
Copy link
Member

Thanks!

@jez jez deleted the fix/pandoc-pipe-tables branch October 26, 2015 15:19
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.

2 participants