Skip to content

Conversation

@yushangakki
Copy link

In latex, only the path of the picture is needed (the rest could be done by snippet, which is separate)

For the original path (like ![name_picture](path)), I put it under the markdown and pandoc filetype.

In latex, only the path of the picture is needed (the rest could be done by snippet, which is seperate)
@ferrine
Copy link
Collaborator

ferrine commented Nov 18, 2020

I think you should implement a function per file type and then choose the correct implementation

execute "normal! a" . g:mdip_tmpname[1:] . "](" . relpath . ")"
call setpos('.', ipos)
execute "normal! vt]\<C-g>"
if &filetype == 'md' || &filetype == 'pandoc'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm concerned by this approach. Better to separate file type logic from the function

@krisgry
Copy link
Contributor

krisgry commented Aug 30, 2021

Perhaps my PR, #56, could be of interest?

@ferrine
Copy link
Collaborator

ferrine commented Jan 22, 2022

Can we close this PR? Or there is still something to resolve?

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.

3 participants