Comments (4)
It's currently pretty hard-coded:
Lines 674 to 688 in 6af4c91
I'm not against making this more configurable/overrideable, but it would be nice to know what you're trying to achieve and why you would want a different behavior.
The intent of obsidian-export is to give you a normalized CommonMark input to feed to later processors (such as static site generators like Zola). It's obsidian-export's job to make sure that input has valid links/paths on the local filesystem that those tools can resolve correctly (which it currently does).
It's not intended to construct final URLs directly, as that's really the job of Hugo, Zola, etc. to do (because it's also their concern to change .md
to .html
, or to link to a directory instead of a file in case of "pretty URLs")
from obsidian-export.
This would be useful for many use cases, not only Zola!
from obsidian-export.
Related issue: #73
from obsidian-export.
I also had an issue where I wanted to leave the spaces encoded as literal spaces, for a responsive image partial for a hugo site, which uses the image in markdown as
{{< imgh src="filename with spaces.png" alt="alt-text" >}}
(since the image filename itself is not renamed to be percent encoded by obsidian-export the partial does not find the asset)
Of course the partial could be changed to first percent encode the resource, but I'm just getting started with hugo...
Partial I'm using: https://mijndertstuij.nl/posts/hugo-responsive-images/
from obsidian-export.
Related Issues (20)
- Allow us to strip date from link generated
- Builds fail due to linting error HOT 3
- preserve mtime of source file
- Include titles
- Can't export to pdf with typst, unrecongnized subcommand HOT 1
- Why the restriction on symlinked folders?
- [Feature Request] Create tag to partially ignore content within a file. HOT 2
- Warning: Unable to find referenced note, is too verbose.
- Export only labeled files HOT 3
- Angular brackets incorrectly escaped in embedded Latex
- Postprocessor type does not enable storing state in the postprocessor
- Warning: Unable to find embedded note Reference: 'xxx' HOT 1
- Wikilinks filename followed by space not linked properly HOT 1
- Feature Request: continue even if error HOT 2
- Embedded link blocks don't work properly HOT 2
- Allow specifying directory relative to root for `--start-at`
- Flag for export only nesessary attachements HOT 2
- allow for custom filter function
- 【feature request】adding GUI for easy usage HOT 1
- [Bug] --only-tags option includes files that do not have tags
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 obsidian-export.