If Firefox was able to export bookmarks to markdown, it would be human readable
I use text editors to work with text. Unfortunately, reading firefox bookmarks in plain text is quite painful, in either HTML or JSON. This is because of the large amount of data stored, like icons, and etc.
If I could export to markdown easily, this could be a nice thing and allow me to use my bookmark file directly.
כל התגובות (4)
Possibly there is an extension with that feature. There are numerous bookmark-related extensions.
Or is there a tool to convert HTML to markdown that you could run against the HTML export? Unfortunately, it's not very well formed HTML (lots of tags are not closed, for example).
Easiest workaround is to open a Bookmarks.html export file in a Firefox tab and save this file as a text file.
cor-el said
Easiest workaround is to open a Bookmarks.html export file in a Firefox tab and save this file as a text file.
Yes this works ok, but some bookmarks span multiple lines. I'll probably end up trying to buy something that can import .json files.
What would you want the markdown to look like?
For example, say you have this HTML from an export file, which is a folder title and for simplicity, the one bookmark in that folder. (I stripped the nonessential attributes.)
<DT><H3>StyleSheets</H3> <DL><p> <DT><A HREF="https://www.google.com/search?q=mdn+stylesheets&ie=utf-8&oe=utf-8&client=firefox-b-1-ab">mdn stylesheets - Google Search</A> </DL>
Since folders can be nested in folders, I would need to know the equivalent markdown. Or maybe the structure isn't important to preserve?