Comments (2)
After some hacking around, I found this solution, which I don't know if it has any side effects but seems to work for me:
diff --git a/autoload/pandoc/folding.vim b/autoload/pandoc/folding.vim
index c00627d..ccfba5f 100644
--- a/autoload/pandoc/folding.vim
+++ b/autoload/pandoc/folding.vim
@@ -120,7 +120,7 @@ endfunction
function! pandoc#folding#MarkdownLevelSA()
let vline = getline(v:lnum)
let vline1 = getline(v:lnum + 1)
- if vline =~ '^#\{1,6}'
+ if vline =~ '^#\{1,6}[^.]'
if synIDattr(synID(v:lnum, 1, 1), "name") !~? '\(pandocDelimitedCodeBlock\|clojure\|comment\)'
if g:pandoc#folding#mode == 'relative'
return ">". len(markdown#headers#CurrentHeaderAncestors(v:lnum))
Hope this helps!
from vim-pandoc.
The same is valid for the :TOC
functionality. Any list with the #.
format will appear as a level 1 item.
from vim-pandoc.
Related Issues (20)
- Hide "[WARNING] Could not deduce format from file extension .pdc, default to markdown"
- Could not fetch resource imgs/image_name.png: replacing image with description HOT 2
- PDF or HTML file location
- Align environment inentation with & characters.
- Image location bug. HOT 2
- How to correctly enable folding? HOT 2
- Loading order in Neowim has changed, breaking vim-pandoc
- Docs: MyPandocOpen custom_open - use existing viewer instance
- Internal links (headers) HOT 2
- Broken code in reference.vim
- Feature Request: go to reference definition in references.vim work with implicit header references
- :Pandoc command does nothing in nvim HOT 5
- `gf` and `gx` not working as expected
- Neovim 0.9.0 bibliography completion only works with yaml source HOT 1
- :Pandoc fails with ValueError (--trace is not in list) HOT 1
- Vim-pandoc not found in the python interpreter ?
- Is it possible to use the pandoc folding module with markdown files ? HOT 2
- Neovim unreliable file type handling HOT 2
- pandoc#biblio#sources and data dir HOT 1
- vim-pandoc-templates parsing fails because pandoc --list-extensions missing leading space per line
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-pandoc.