Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions autoload/voom/voom_vimplugin2657/voom_mode_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def hook_makeOutline(VO, blines):

L2 = blines[0].rstrip() # first Body line
isHead = False
isInCodeBlock = False
for i in xrange(Z):
L1 = L2
j = i+1
Expand All @@ -70,6 +71,11 @@ def hook_makeOutline(VO, blines):

if not L1:
continue

if L1.strip().startswith('```'):
isInCodeBlock = not isInCodeBlock
if isInCodeBlock:
continue

if L2 and (L2[0] in ADS_LEVELS) and not L2.lstrip(L2[0]):
isHead = True
Expand Down