Typo/Ruby on Rails issue with Markdown/SmartyPants syntax

18Aug05

Wow, this is priceless. I wrote the following in a previous post:

`  File \"Z:\\Work\\trunk:
`

The backticks are Markdown/Smartypants syntax for monospace font (such as that used to display code, eg. this is monospace).

Anyway, apparently Typo/Rails didn’t like it, and gave me an ‘Application Error’, without explaining what the problem was. When I went digging through the logs, I found this:

BlueCloth::FormatError (Bad markdown format near "  File \"Z:\\Work\\trun":
 No "`" found before end):
  /vendor/bluecloth/lib/bluecloth.rb:919:in `transform_code_spans'
  /vendor/bluecloth/lib/bluecloth.rb:264:in `apply_span_transforms'
  /vendor/bluecloth/lib/bluecloth.rb:731:in `form_paragraphs'
  /vendor/bluecloth/lib/bluecloth.rb:723:in `collect'
  /vendor/bluecloth/lib/bluecloth.rb:723:in `form_paragraphs'
  /vendor/bluecloth/lib/bluecloth.rb:252:in `apply_block_transforms'
  /vendor/bluecloth/lib/bluecloth.rb:204:in `to_html'

I’m a little surprised — Typo, my little pet pleasure (of the last few days, anyway) doesn’t handle failed parsing?

0 Responses to “Typo/Ruby on Rails issue with Markdown/SmartyPants syntax”


  1. No Comments

Leave a Reply


Comment guidelines: No spamming, no profanity, and no flaming. Inappropriate comments will be deleted outright.