Skip to content

Explicit support for tab-indented code blocks #207

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
Jan 19, 2017

Conversation

abudden
Copy link
Contributor

@abudden abudden commented Dec 22, 2016

Pandoc's user guide defines a code block as:

A block of text indented four spaces (or one tab)...

The vim-pandoc-syntax looks for the pattern \s\{4,} which matches a minimum of 4 whitespace characters and therefore requires either four spaces or four tabs. This pull request changes it to look for either 4 spaces or one tab.

@fmoralesc fmoralesc changed the title Add support for tab-indented code blocks Explicit support for tab-indented code blocks Jan 19, 2017
@fmoralesc fmoralesc merged commit 8934152 into vim-pandoc:master Jan 19, 2017
@fmoralesc
Copy link
Member

Thanks. Sorry for the delay, life caught up.

davenquinn added a commit to davenquinn/vim-pandoc-syntax that referenced this pull request Aug 10, 2018
* master: (70 commits)
  Three improvements to LaTeX highlighting (vim-pandoc#216)
  Add `pandocAmpersandEscape` syntax for &...; special chars (vim-pandoc#205)
  Fix unicode with sub- or superscripts. (vim-pandoc#202)
  Optionally disable definition lists (vim-pandoc#212)
  Add support for tab-indented code blocks (vim-pandoc#207)
  Never conceal \ in \newcommand... (vim-pandoc#197)
  BufFilePRE => BufFilePre (vim-pandoc#199)
  Fixes for parenthetical citations (vim-pandoc#189)
  Fix footnotes. (vim-pandoc#188)
  Fix reference links
  Fix automatic links by restricting characters in mail links.
  Check 'termguicolors' instead of 'nvim'
  fix typo in doc
  fix for upstream issue vim-pandoc#177
  fix typo
  Conceal char for end of code block
  Add cchar for block end
  added endash and emdash support to syntaxt
  fix for neovim
  Use custom syntax group for operators
  ...
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