Skip to content

Commit

Permalink
fix: emoji-processor has no output for file handled
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreytse committed Jan 9, 2021
1 parent 43849f9 commit e073e2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/jekyll-spaceship/processors/emoji-processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ def self.config

def on_handle_html(content)
emoji_filter(content, 'pre code') do |emoji|
# mark current file has been handled
self.handled = true

# here is the replacement content
"<img class=\"#{config['css']['class']}\""\
" title=\":#{emoji.name}:\""\
" alt=\":#{emoji.name}:\""\
Expand Down

0 comments on commit e073e2f

Please sign in to comment.