Skip to content

Instantly share code, notes, and snippets.

@skalee
Last active April 14, 2019 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skalee/fe1a52a797f7c821ae354a59f7812fd9 to your computer and use it in GitHub Desktop.
Save skalee/fe1a52a797f7c821ae354a59f7812fd9 to your computer and use it in GitHub Desktop.
YARD render code listings incorrectly

In AsciiDoc…​

Ruby snippet (language specified)

two = 1 + 1
eleven = "1" + "1"
raise if Failure.problem

Ruby snippet (language not specified)

two = 1 + 1
eleven = "1" + "1"
raise if Failure.problem

Ruby snippet (language specified, listing title given)

test.rb
two = 1 + 1
eleven = "1" + "1"
raise if Failure.problem

Ruby snippet (language not specified, listing title given)

test.rb
two = 1 + 1
eleven = "1" + "1"
raise if Failure.problem

Bash snippet (language specified)

bc <<<"1+1"
# Should return 2

Bash snippet (language not specified)

bc <<<"1+1"
# Should return 2

Block of preformatted plain text

  *************
   "Some text"
  *************
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment