Comments (8)
This is a known bug/missing feature. Unfortunately WKWebView
doesn't make it easy to include local assets (including images). I believe MacDown is using the old WebView
which makes this easier
from pine.
from pine.
@skiprca If your keen then definitely have a go to try and fix it, thanks! I was planning on getting to it some time in the future, but haven't had much time to work on it recently unfortunately
from pine.
I've begun work on this in #32, but as you can read in the PR, there is a small problem i'm facing. If I can't solve it in the next few days, i'll merge the PR in anyway.
from pine.
Just stumbled on entry #32 after unsuccessfully trying to get image preview to load. Glad you already started implementing it.
If i may add two comments and a feature-wish:
- Since you just showed markdown-syntax in your screenshot-preview, it would be great if
<img src="">
would also be supported. - i would greatly appreciate an easy possibility to insert an empty markdown image-tag
![]()
with a shortcut. (for example: Macdown uses Command+Shift+I) - A quick and easy way to define image size (really important for PDF-Export) would be great. Something similar was already wished for for macdown before they ceased development. I quote:
"If there is a way to implement the syntax
![](pic/location/url =200x)
like Mou, or just add an alternative way of Command+Shift+I to input<img src="" width="">
directly."
Thanks a bunch!
from pine.
@noestreich regarding the feature wish list:
<img src="">
tags are supported for rendering images in #32- I will definitely add a shortcut for markdown images
- In #32 you can specify the width and height using the HTML
<img>
tags. I don't plan to support setting width/height using the markdown syntax since CommonMark and GitHub Flavored Markdown don't support it either. Perhaps instead I will implement the shortcut mentioned to insert<img src="" width="">
directly
from pine.
Perfect and reasonable reply all around. Thanks for the fast feedback! Looking forward to use the image preview.
from pine.
The issue in #32 has been fixed! A good nights sleep always resolves any problems. I also implemented both markdown and HTML image shortcuts.
- For a markdown image, the shortcut is Command+Shift+I
- For a HTML image, the shortcut is Control+Shift+I
These new shortcuts and the new local image feature will be included in the next release. If there are any issues with images not appearing, please raise a new issue.
from pine.
Related Issues (20)
- M1 canot open pine HOT 3
- print the document is not work
- Pine automatically replace ' to ‘ and -- with —
- local image filenames cannot contain spaces
- Text on the editor doesn't wrap
- Crash while editing document
- Autosave
- Line of text bouncing/moving while typing
- Pine crashes after typing certain text
- Pine needs internet access to work (which it shouldn't)
- Feature: support copying and pasting tables from Excel HOT 1
- Use system appearance + github
- Rendering issue: bold text ending with colon
- Is this project still alive? HOT 7
- Universal Binary for Apple Silicon HOT 1
- domain pine.press HOT 1
- Can not see the code block non-critical word
- Add SECURITY.md
- [Feature] Adding Mermaid Plugin
- Sidebar isn't updated when new files/folders are added to the current directory
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pine.