frog icon indicating copy to clipboard operation
frog copied to clipboard

this file kills frog

Open mbutterick opened this issue 9 years ago • 7 comments

https://github.com/mbutterick/racket-lang-org/blob/master/pollen/blog/_src/posts/2012-11-13-contracts-for-object-oriented-programming.md

raco frog -b just hangs.

mbutterick avatar Feb 23 '16 00:02 mbutterick

Tried to narrow down the source of the error, to no avail.

mbutterick avatar Feb 23 '16 00:02 mbutterick

FWIW, this is the only post in a broader conversion of Blogger posts to Markdown that had a problem.

It's possible that the Markdown conversion was incorrect, but the fact that it renders within Github suggests that the Markdown is OK.

mbutterick avatar Feb 23 '16 00:02 mbutterick

Thanks for the report. This is likely to be the markdown parser. Although I can't try it hands-on until later, my first guess would be to look at the > characters in the quoted blocks -- is the parser getting confused about those? If so, you could try escaping them, \>, as a work-around for now.

greghendershott avatar Feb 23 '16 14:02 greghendershott

Close — it seems to be the left bracket that's fouling it up. Changing < to \< seems to fix it.

mbutterick avatar Feb 24 '16 00:02 mbutterick

This file also kills frog. I'm not sure why. If I delete everything after line 332 then frog handles it in 1-3 minutes.

2017-10-11-test.md.txt

bennn avatar Oct 11 '17 05:10 bennn

On line 233 the <download.racket-lang.org> text looks like an opening HTML tag.

If you change tht to (say) <https://download.racket-lang.org/> it will parse "instantly".

greghendershott avatar Oct 11 '17 14:10 greghendershott

Markdown automatic links require a prefix scheme (protocol) like http:, https:, or mailto:.

Various markdown parsers handle <download.racket-lang.org> in various ways, but none treat it like a link.

Unfortunately an unmatched open HTML tag is an Achilles heal of the markdown parser used by frog.

greghendershott avatar Oct 11 '17 14:10 greghendershott