Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A first attempt at a little Jekyll plugin to parse ==text== into <mark>text</mark>
class HighlightsGenerator < Jekyll::Generator
def generate(site)
all_docs = site.documents
# Converts Markdown-plus ==text== to <mark>text</mark>
all_docs.each do |current_note|
current_note.content = current_note.content.gsub(

This comment has been minimized.

Copy link
Owner Author

@BorisAnthony BorisAnthony commented Jul 27, 2020

The issue with this plugin currently is that any other markdown contained between == == is rendered un-converted to HTML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.