From 07f00d55adf21a5498351e37606698d21831fca7 Mon Sep 17 00:00:00 2001 From: Peter Aronoff Date: Mon, 28 Jun 2010 06:56:44 -0400 Subject: [PATCH] Update discount to 1.6.6 From [discount's website][1.6.6]: * version 1.6.6 repairs two defects, one in the markdown compiler and one in `theme`: 1. In `theme`, I needed to take into account the source filename might not have an extension when I'm making the `.html` filename. The old behavior was to look for a dot and put the `.html` after that, but _I didn't check to see if there was actually a dot there_ before appending the `.html`! This did not work out too well if there was no dot. 2. In the markdown parser, I wasn't handling escapes of the open square bracket inside a `[]()` construct. So a link like [foo\[and\]bar](does not work properly!) would not parse because my square bracket matcher would look for an additional `]` to match the `\[` inside the `[]` part. [1.6.6]: http://www.pell.portland.or.us/~orc/Code/discount/#1.6.6 Signed-off-by: Adam Vandenberg --- Library/Formula/discount.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Formula/discount.rb b/Library/Formula/discount.rb index f8ee8a59fed4..a9eeb555c1ad 100644 --- a/Library/Formula/discount.rb +++ b/Library/Formula/discount.rb @@ -1,9 +1,9 @@ require 'formula' class Discount