Ticket #42 (new defect)

Opened 2 years ago

Last modified 2 years ago

Parsing fails on nested tags

Reported by: deveiant Owned by: deveiant
Priority: high Milestone: Bugfixes
Component: MarkdownSyntax Version: 1.0.1
Severity: normal Keywords: parser nested tags
Cc: rh{at}roberthahn{dot}ca

Description (last modified by deveiant) (diff)

[From an email from <rh{at}roberthahn{dot}ca>]:

While working on a project that utilizes BlueCloth, I found an interesting bug that causes the parser to break badly.

If I wanted to print out some HTML with an SSI in it, like this:

     <a href="<!--#echo var="PAGE"-->"> ...</a>

The parser dies because it doesn't expect a nested tag.

Attachments

10_Bug.tests.rb (1.4 kB) - added by roberthahn 2 years ago.
This file, found in BlueCloth/tests/, has been augmented to add a new test case (1/2)
nested_tags.txt (0.9 kB) - added by roberthahn 2 years ago.
This file, found in BlueCloth/tests/data, has been created to illustrate possible error scenarios (2/2)

Change History

Changed 2 years ago by deveiant

  • description modified (diff)

Oops. Removed email encoding stuff from the testcase.

Changed 2 years ago by deveiant

  • cc rh{at}roberthahn{dot}ca added; (redacted) removed

Fixed exposed email address.

Changed 2 years ago by roberthahn

This file, found in BlueCloth/tests/, has been augmented to add a new test case (1/2)

Changed 2 years ago by roberthahn

This file, found in BlueCloth/tests/data, has been created to illustrate possible error scenarios (2/2)

Changed 2 years ago by roberthahn

Added test case and representative data file to assist with coding a fix.

Note: See TracTickets for help on using tickets.