Comments (3)
This is really useful as the link converter im using also adds the old md link name as a caption and thus the image do not render. It would be a nice feature.
To remove all existing embed picture captions one might use find to select all md files from the current folder tree and replace all ![[abc|def]] occurrences with ![[abc]]:
find . -type f -name '*.md' | while read i; do sed -i -r 's/\!\[\[(.*?)\|.*?\]\]/\!\[\[\1\]\]/g' $i; done
from perlite.
I added some more regex magic, in the next release you can use the following syntax to provide both, image alt text and size attributes for your embedded images.
Image with size and description
![[docs/Pasted image 202401101247081.png|Description of the image contents|100x100]]
will render as
<img class="images" width="100" height="100" alt="Description of the image content|" src="Demo/Demo Documents/docs/Pasted image 202401101247081.png">
Image with description only
![[docs/Pasted image 202401101247081.png|Description of the image content]]
will render as
<img class="images" alt="Description of the image contents" src="Demo/Demo Documents/docs/Pasted image 202401101247081.png">
Image with size only
![[docs/Pasted image 202401101247081.png|100x100]]
will render as
<img class="images" width="100" height="100" alt="image not found" src="Demo/Demo Documents/docs/Pasted image 202401101247081.png">
from perlite.
fixed / implemented in 1.5.8
from perlite.
Related Issues (20)
- Work with Custom CSS from Themes HOT 3
- Merge perlite and perlite_web into one Image HOT 5
- failed building web HOT 10
- Unable to Start Perlite HOT 6
- PDF and MP4 files rendering with WIKILinks HOT 3
- YAML frontmatter not displayed HOT 2
- Feature request: Dataview HOT 1
- Support for random note? HOT 3
- embed link
- Minimizing callouts doesn't work HOT 2
- Issue with fetching my vault HOT 3
- Compatibility with Excalidraw plugin HOT 1
- Support for Tasks Syntax HOT 1
- Move config to separate file (eg config.php) HOT 2
- Add config option to always show sidebar on mobile
- support for embedded YouTube videos HOT 1
- Add tags on the right panel like obsidian
- Add cron job to docker image for graph calculations HOT 5
- Does Perlite support XAMPP HOT 5
- Support for WEBP
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 perlite.