deathau / markdownload

A Firefox and Google Chrome extension to clip websites and download them into a readable markdown file.
Apache License 2.0
2.8k stars 223 forks source link

Feature request: Multi-colored highlights #18

Open schoeke opened 4 years ago

schoeke commented 4 years ago

Provide the possibility to highlight sections of a clipped page, if possible even in multiple colors.

Obsidian for example allows to highlight text in a marker style by using ==example text==. This a simple yellow marker, equivalent to <marker>example test</maker>.

Other bookmarking tools such as diigo even provide multi-colored highlights, which also allows multiple users in to mark the same text or allow to differentiate the marking of multiple passes over the same text. This would be for example equivalent to <marker style="background-color: greenyellow">example test</maker>.

This could be provided as option in the the context menu as Highlight Selection as Markdown with different colors as sub-options.

deathau commented 4 years ago

🤔 This will require some thinking about and planning, but is a good suggestion.

The other thing to consider is that highlighting in Obsidian is non-standard markdown AFAIK, and other apps handle it differently (I think bear uses ::example text:: for example). Not something that can't be overcome with options, of course.

Multi-coloured highlights would be handy, but I'm a bit hesitant about adding a HTML tag in the output of an extension whose purpose is to convert HTML to markdown.... I'll think about it further.

zevarela commented 6 months ago

Here's a quick suggestion, support a few highlights colours by different numbers of equal signs, in a similar fashion to the headers #, ##, ###, ####, behaviour we would have ==, ===, ====, =====, ... for different colours, if possible chosen by the user. Maybe default to rainbow order?

zevarela commented 6 months ago

Actually, we could harmonise bear and obsidian by assigning warm and cold colours to either : or = while still following the rainbow order: :: - Red ::: - Orange :::: - Yellow == - Green === - Blue ==== - Indigo If we need 7 colours, we might represent violet by both ===== and :::::.

No need for any pesky html, and seems like a pretty natural extension of current notation.