klalle / obsidiantohtmlconverter Goto Github PK
View Code? Open in Web Editor NEWPython script for converting obsidian md-file to html (recursively adds all link/images)
Python script for converting obsidian md-file to html (recursively adds all link/images)
I found that the tool is not sizing images properly.
I found and fixed the issue in the code and have a pull request for you.
Should I issue you the pull request?
For example, if frontmatter contains "publish: yes" then include the file. If it contains "publish: no" or "status: draft" etc., then don't export.
In effect, whitelist as well as blacklist for exporting.
Hi klalle,
Just to let you know I've made something similar: https://github.com/obsidian-html/obsidian-html
Currently it seems that my version has a lot more features (that I personally require for converting my obsidian files to html), but I really like how simple your script is, and that it has no external dependencies.
You can see all the features it implements to fully translate obsidian to markdown (and from there to html using python-markdown) here: https://obsidian-html.github.io/.
Maybe it can be inspiration showing you what you're still missing in your script.
I know this is a shameful plug, and I by no means mean to one-up you. (Writing a solution to a problem yourself is the best thing about programming after all). I thought it might be useful for you and the users of your script, if they need a more powerful option (with unavoidable extra setup complexity ;) )
You can remove this if this kind of posting is not okay.
I'm anxious to try out this script, but I haven't had any luck actually making it run.
I don't code or live on the command line so I'm having trouble interpreting how to specify the answers to the two required questions. Anything I've tried so far hasn't worked.
The first parameter "Exports the choosen md-file to a new vault". Where is this "new vault"? Can I specify what directory / folder to export to?
How I specify the switches isn't clear to me. Would you please provide an example of how to invoke the script with a filename and the two optional parameters chosen? That would make things much clearer I think.
Thanks for your work and thank for any help you can offer!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.