Skip to content
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

Better support for latex #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Better support for latex #48

wants to merge 1 commit into from

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