Ticket #23 (closed defect: wontfix)

Opened 14 months ago

Last modified 10 months ago

Strong tag being incorrectly processed as list for numeric content

Reported by: mezza Owned by: why
Priority: major Milestone:
Component: ext Version: SUPER
Keywords: Cc:

Description

The '*' textile code for <strong> text is not being interpreted correctly if the contained text starts with a number.

Eg:

h1. This a test

*2007 reports*

table.
| a | b |
| c | d |

Generates:

<h1>This a test</h1>

<ul>
  <li>reports*</li>
</ul>

<table>
  <tr>
    <td> a </td>
    <td> b </td>
  </tr>
  <tr>
    <td> c </td>
    <td> d </td>
  </tr>
</table>

instead of :

<h1>This a test</h1>

<p><strong>2007 reports</strong></p>

<table>
  <tr>
    <td> a </td>
    <td> b </td>
  </tr>
  <tr>
    <td> c </td>
    <td> d </td>
  </tr>
</table>

Changing the '2007 reports' in the example above to 'Reports for 2007' generates the correct result.

Change History

Changed 10 months ago by johansorensen

Which version/revision of RedCloth/SuperRedCloth??

Changed 10 months ago by jgarber

  • status changed from new to closed
  • version set to SUPER
  • resolution set to wontfix

An asterisk, followed by a number, followed by a space is the right way to start a list at the number specified. I don't know how else to have it interpret your intentions.

It's for these cases we allow explicitly making something a paragraph:

p. *2007 report*
Note: See TracTickets for help on using tickets.