Sha256: 17eb4004aad11e55c2411db0435ddc58b30e07cc4a148eee57407fde8ad4f484
Contents?: true
Size: 581 Bytes
Versions: 3
Compression:
Stored size: 581 Bytes
Contents
# frozen_string_literal: true RSpec.describe TTY::Markdown, 'abbrev' do it "abbreviates markdown" do markdown =<<-TEXT *[HTML]: Hyper Text Markup Language test HTML TEXT parsed = TTY::Markdown.parse(markdown) expect(parsed).to eq([ "test HTML\n" ].join("\n")) end it "indents abbreviations correctly" do markdown =<<-TEXT ### header *[HTML]: Hyper Text Markup Language test HTML TEXT parsed = TTY::Markdown.parse(markdown) expect(parsed).to eq([ " \e[36;1mheader\e[0m", " test HTML\n" ].join("\n")) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tty-markdown-0.6.0 | spec/unit/parse/abbrev_spec.rb |
tty-markdown-0.5.1 | spec/unit/parse/abbrev_spec.rb |
tty-markdown-0.5.0 | spec/unit/parse/abbrev_spec.rb |