Skip to content

Backwards-incompatible strikethrough changes #400

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
8 changes: 2 additions & 6 deletions syntax/pandoc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ if &encoding ==# 'utf-8'
\'image': '▨',
\'super': 'ⁿ',
\'sub': 'ₙ',
\'strike': 'x̶',
\'atx': '§',
\'codelang': 'λ',
\'codeend': '—',
Expand All @@ -60,7 +59,6 @@ else
\'image': 'i',
\'super': '^',
\'sub': '_',
\'strike': '~',
\'atx': '#',
\'codelang': 'l',
\'codeend': '-',
Expand Down Expand Up @@ -393,8 +391,7 @@ call s:WithConceal('superscript', 'syn match pandocSuperscriptMark /\^/ containe
" }}}3

" Strikeout: {{{3
syn region pandocStrikeout start=/\~\~/ end=/\~\~/ contains=@Spell,pandocAmpersandEscape keepend
call s:WithConceal('strikeout', 'syn match pandocStrikeoutMark /\~\~/ contained containedin=pandocStrikeout', 'conceal cchar='.s:cchars['strike'])
call s:WithConceal('strikeout', 'syn region pandocStrikeout matchgroup=pandocOperator start=/\~\~/ end=/\~\~/ contains=@Spell,pandocAmpersandEscape keepend', 'concealends')
" }}}3

" }}}2
Expand Down Expand Up @@ -699,11 +696,10 @@ function! s:SetupPandocHighlights()
hi def link pandocNoFormattedAttrs Comment
hi def link pandocSubscriptMark Operator
hi def link pandocSuperscriptMark Operator
hi def link pandocStrikeoutMark Operator
if g:pandoc#syntax#style#underline_special == 1
hi pandocSubscript gui=underline cterm=underline
hi pandocSuperscript gui=underline cterm=underline
hi pandocStrikeout gui=underline cterm=underline
hi pandocStrikeout gui=strikethrough cterm=strikethrough
endif
hi def link pandocNewLine Error
hi def link pandocHRule Delimiter
Expand Down