markdownload icon indicating copy to clipboard operation
markdownload copied to clipboard

Feature request: Multi-colored highlights

Open schoeke opened this issue 5 years ago • 3 comments

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.

schoeke avatar Sep 24 '20 05:09 schoeke

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

deathau avatar Sep 24 '20 23:09 deathau

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 avatar Mar 21 '24 20:03 zevarela

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.

zevarela avatar Mar 21 '24 20:03 zevarela