搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

If Firefox was able to export bookmarks to markdown, it would be human readable

more options

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.

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)

more options

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).

more options

Easiest workaround is to open a Bookmarks.html export file in a Firefox tab and save this file as a text file.

more options

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.

more options

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?