developit / snarkdown

:smirk_cat: A snarky 1kb Markdown parser written in JavaScript
http://jsfiddle.net/developit/828w6t1x/
MIT License
2.28k stars 110 forks source link

Strikethrough not working #100

Open qualityshepherd opened 3 years ago

qualityshepherd commented 3 years ago
  1. goto Snarky
  2. attempt to format text with strike through via ~

Results

it renders the ~ as regular text... should be ~strike through~

Failing test...

it('parses strike through', () => {
  expect(snarkdown('I like ~HUGE~ tiny libraries')).to.equal('I like <s>HUGE</s> tiny libraries');
});
jacobmischka commented 3 years ago

Strikethrough requires ~~ typically, which is what this library supports.

qualityshepherd commented 3 years ago

Strikethrough requires ~~ typically, which is what this library supports.

Fact... and that's also not working...

jacobmischka commented 3 years ago

Oh I think that web app is outdated? The test I added referenced above worked for me right away.