taskwiki icon indicating copy to clipboard operation
taskwiki copied to clipboard

Markdown filter concealment

Open abers opened this issue 6 years ago • 6 comments

When using markdown as the syntax (g:taskwiki_markup_syntax = 'markdown' is set) the header syntax works but the filter concealment does not. Syntax highlighting for priority, checkboxes, etc also doesn't work. Strangely, I can force it to half-work again if I add an '=' to the end of one of the viewports - causing an "expression could not be evaluated" error but the syntax highlighting and concealment to work.

abers avatar Feb 21 '19 11:02 abers

My bad. I had vimiwiki syntax set to pandoc in my .vimrc rather than vimwiki.markdown. Changed it and concealment and all syntax highlighting working for taskwiki.

abers avatar Feb 21 '19 12:02 abers

Annoyingly it looks like it is impossible to assign different filetypes / syntax highlighting to different vimwikis. Been trying to set up my organisational wiki to use vimwiki.markdown so that the taskwiki highlighting works, and then my academic wiki with markdown.pandoc so that YAML and citekeys are correctly highlighted. Is there a simple way I could modify the code so that the additional syntax highlighting / concealment is applied to markdown.pandoc files within vimwiki directories?

abers avatar Feb 21 '19 19:02 abers

@abers you can set different syntax per wiki. Here are my dotfiles. I don't do it but you could https://github.com/skbolton/titan/blob/master/states/nvim/nvim/plugin/wiki.vim

skbolton avatar Aug 04 '19 18:08 skbolton

Unless I'm misunderstanding the syntax setting is merely to set vimwiki or markdown syntax per wiki. In either case vimwiki enforces its filetype and syntax highlighting. I want to configure it so that vimwiki highlighting is used for one wiki and pandoc highlighting for another.

abers avatar Aug 06 '19 20:08 abers

@abers the syntax key controls the syntax you are right. The ext key controls the extension which controls when vim wiki notices the file type it controls. So you could do tricks where you control when vim wiki kicks in.

skbolton avatar Aug 07 '19 02:08 skbolton

Again, unsure if misunderstanding. Doesn't vimwiki enforce it's filetype upon the wikis? So it's either vimwiki or vimwiki.markdown. If I want two markdown wikis (so both are syntax = markdown, and ext = md), but one using vimwiki syntax highlighting and the other using pandoc syntax I do not see how that is possible with the syntax or extension variables.

abers avatar Aug 07 '19 08:08 abers