markdownjekylljekyll-bootstrap

Jekyll markdown strikethrough


I can't get Jekyll's markdown processor to listen to me. These all display as is:

1.  ~Call Mom today.~

1.  ~~Call Mom today.~~

This just makes the internal text disappear:

1.  <s> Call Mom today.</s>

I'm using Jekyll Bootstrap pretty much out of the box.


Solution

  • Perhaps this

    markdown: redcarpet
    redcarpet:
      extensions: ["strikethrough"]
    

    Github flavored Markdown and pygments highlighting in Jekyll

    Or

    echo '1. <s>Call Mom today.</s>' | kramdown
    

    Result

    <ol>
      <li>
        <s>Call Mom today.</s>
      </li>
    </ol>
    

    Note if you are using jekyll --watch this config change will not be picked up; you will need to restart Jekyll.