# frozen_string_literal: true describe PrettyText do describe "markdown it" do it "can properly bake boxes" do md = <<~MD [],[ ],[x],[X] are all checkboxes `[ ]` [x](hello) *[ ]* **[ ]** _[ ]_ __[ ]__ ~~[ ]~~ are not checkboxes MD html = <<~HTML

,,, are all checkboxes
[ ] x [ ] [ ] [ ] [ ] [ ] are not checkboxes

HTML cooked = PrettyText.cook(md) expect(cooked).to eq(html.strip) end end end