Marked Not Showing Highlights

Adam's Avatar

Adam

27 Aug, 2024 01:58 PM

I'm using Bear streaming to Marked to create PDFs since I can make page breaks in Marked. You're a life saver!

I have a problem with the highlights. The highlights aren't carrying over on the templates. They appear as `==` throughout the Marked output. Is there a way to fix this or does this require an update from Marked? I even tried the Bear template from your gallery to see if that would be setup for it, but I got the same result.

Thanks for your time!

  1. 1 Posted by Khyle on 29 Jan, 2025 09:37 PM

    Khyle's Avatar

    I have this exact same issue. I was hoping to use Marked 2 for manuscripts in Bear that feature a lot of highlights. Could support for this be added to the app or could you give direction how to add it through CSS? I'm not a programmer and have no idea how to add this.

  2. Support Staff 2 Posted by Brett on 07 Mar, 2025 03:31 PM

    Brett's Avatar

    Please take a look at the custom processor in this post:

    https://brettterpstra.com/2023/10/08/marked-and-bear/

    Adding highlight support is relatively easy, you just need a custom preprocessor, or to define a processor like CommonMark as your Custom Processor.

  3. Support Staff 3 Posted by Brett on 10 Mar, 2025 01:22 PM

    Brett's Avatar

    Marked 2.6.45+ now supports ==highlighting==.

  4. Brett closed this discussion on 10 Mar, 2025 01:22 PM.

Comments are currently closed for this discussion. You can start a new one.

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