Skip to content

Fix things that look like tables in code blocks #361

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
Jul 6, 2021

Conversation

jez
Copy link
Contributor

@jez jez commented Jun 26, 2021

When I have a markdown document that looks like this:

```yaml
---
foo: bar
---
```

the pandocDelimitedCodeBlockStart region was tricking the ALLBUT,
making Vim think that it should treat the --- as the start of a simple
table, even though it was inside a code block.

Before

Screen Shot 2021-06-26 at 1 58 04 PM

Screen Shot 2021-06-26 at 1 58 22 PM

Screen Shot 2021-06-26 at 1 58 49 PM

After

Screen Shot 2021-06-26 at 1 55 13 PM

When I have a markdown document that looks like this:

    ```yaml
    ---
    foo: bar
    ---
    ```

the `pandocDelimitedCodeBlockStart` region was tricking the `ALLBUT`,
making Vim think that it should treat the `---` as the start of a simple
table, even though it was inside a code block.
Copy link
Member

@alerque alerque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking the time to contribute. I haven't gotten a chance to test this live but it looks sane.

@jez
Copy link
Contributor Author

jez commented Jul 6, 2021

Bump on this! It's approved but not merged. Is there anything left you need from me? Happy to help, and thanks in advance.

@fmoralesc
Copy link
Member

Thanks for the reminder! LGTM.

@fmoralesc fmoralesc merged commit 5056e63 into vim-pandoc:master Jul 6, 2021
@jez jez deleted the jez-table-code-block branch February 16, 2022 02:12
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.

3 participants