Closed tyler2018 closed 5 years ago
I write blog use hero with atom use plugin, when I deployment to GitHub, <img alt="5e50c8e9.png" src="test-artical/5e50c8e9.png" width="300" height="” >. Can display,
cannot display correctly.
But atom is not good enough, so I try vscode. But now image operation is limited. Also I know markdown not recommend use html notation in article, but if I don’t use, I can’t see the picture. Or you can give some advice. That be thankful.
For example:
// this form working
// this form not working
On 13 Oct 2018, at 12:59, WenHong.Tan notifications@github.com wrote:
I don't know what you mean, If you want to paste an image in a web page, you can right click the image and select "copy image", and then you can use Ctrl+Alt+V to paste it into vscode.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/telesoho/vscode-markdown-paste-image/issues/20#issuecomment-429511487, or mute the thread https://github.com/notifications/unsubscribe-auth/AiP6uiYriCh51rQANLTECcV-sJk7n7wkks5ukXMngaJpZM4XZUc5.
@tyler2018
// this form not working ![](${fileBasenameNoExtension}/2018-10-12-19-41-39.png)
The predefined variable ${fileBasenameNoExtension} do not woking in markdown file, but only working in vscode extension configure file. For example:
![](test-artical/2018-10-12-19-41-39.png)
has been insert into markdown file for you.
OK, thanks for the variable support.
And this question is need html format. With html format I can adjust image size, position image center.
Like this:
<img alt="5e50c8e9.png" src="test-artical/5e50c8e9.png" width="300" height="” >
You see first is display use html format width=300,
Second is , I can do nothing with it.
On 23 Oct 2018, at 15:42, WenHong.Tan notifications@github.com wrote:
@tyler2018 https://github.com/tyler2018 // this form not working
The predefined variable ${fileBasenameNoExtension} do not woking in markdown file, but only working in vscode extension configure file. For example:
Add pasteImage.path to your vscode workspace settings file like this: https://user-images.githubusercontent.com/10979091/47342787-76900080-d6df-11e8-9409-b7908d41d737.png Use CTRL+ALT+V to paste an image it to a markdown file(e.g. test-artical.md), you will see
has been insert into markdown file for you.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/telesoho/vscode-markdown-paste-image/issues/20#issuecomment-432132295, or mute the thread https://github.com/notifications/unsubscribe-auth/AiP6usviwPM2l-eQQCWiSbDh8dcKGPoTks5unshQgaJpZM4XZUc5.
And I suggest use hash of image as file name , prevent duplicate image exist. I think I can use vscode write blog now. Thank you very much.
On 23 Oct 2018, at 15:42, WenHong.Tan notifications@github.com wrote:
@tyler2018 https://github.com/tyler2018 // this form not working
The predefined variable ${fileBasenameNoExtension} do not woking in markdown file, but only working in vscode extension configure file. For example:
Add pasteImage.path to your vscode workspace settings file like this: https://user-images.githubusercontent.com/10979091/47342787-76900080-d6df-11e8-9409-b7908d41d737.png Use CTRL+ALT+V to paste an image it to a markdown file(e.g. test-artical.md), you will see
has been insert into markdown file for you.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/telesoho/vscode-markdown-paste-image/issues/20#issuecomment-432132295, or mute the thread https://github.com/notifications/unsubscribe-auth/AiP6usviwPM2l-eQQCWiSbDh8dcKGPoTks5unshQgaJpZM4XZUc5.
@tyler2018
Also I know markdown not recommend use html notation in article, but if I don’t use, I can’t see the picture.
I also not recommend use html notation in markdown too. I will not ready to support the feature to pasting image to html format.
And I suggest use hash of image as file name , prevent duplicate image exist.
Thank you for your suggestion.
I don't know what you mean, If you want to paste an image in a web page, you can right click the image and select "copy image", and then you can use Ctrl+Alt+V to paste it into vscode.