how can I add highlighting to the Bear or any other CSS ?

rover213's Avatar

rover213

09 Jul, 2020 01:48 PM

Hello,
I am a registered user.
Bear app notes allow for highlighting. Highlighted section are delimited by ::highlight::
I have many texts to print and could not find any highlight in any of your CSS models, including the bear.css
thanks very much Brett !

  1. Support Staff 1 Posted by Brett on 09 Jul, 2020 02:17 PM

    Brett's Avatar

    That syntax is not Markdown, and Markdown has no correlating syntax. I would consider adding support for it eventually, since I’m already supporting Bear’s tag syntax, but at this point you can’t expect non-Markdown syntax to work with a Markdown previewer.

    It would be simple, however, to write a custom preprocessor to handle it, if one were handy with a scripting language (Ruby, Python, Perl could all handle it).

    - Brett

  2. 2 Posted by rover213 on 09 Jul, 2020 02:18 PM

    rover213's Avatar

    thank you Brett !
    Jean Lette
    [email blocked]

  3. Support Staff 3 Posted by Brett on 09 Jul, 2020 02:19 PM

    Brett's Avatar

    You would need to convert ::highlight:: to a <mark> tag or a block tag with a class you could target with custom CSS.

    - Brett

  4. Support Staff 4 Posted by Brett on 09 Jul, 2020 10:08 PM

    Brett's Avatar

    I added ::marker:: support to the beta version I released today. Feel
    free to try it out:
    https://brettterpstra.com/2020/07/09/the-next-big-thing-for-marked-2/

    -Brett

  5. 5 Posted by rover213 on 10 Jul, 2020 06:03 AM

    rover213's Avatar

    thanks very much Brett !!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac