vmg / sundown

Standards compliant, fast, secure markdown processing library in C
1.99k stars 385 forks source link

Anchor tag prevents a table from rendering #95

Open sgilda opened 12 years ago

sgilda commented 12 years ago

I ran into a problem where an anchor tag seems to impact and prevent a table from rendering.

You can view the issue here: https://gist.github.com/1995690

You'll see that the table in "Section 1" does NOT render, but the table in "Section 2" renders fine. The only difference is a blank line was added between the anchor and the next line in Section 2.

The following is the text from the file:

Table Rendering Bug

Introduction

This document contains 2 sections.

The only difference in section 2 is the blank line between the "section2step1" anchor and the first list item.

Section 1

This is section 1. Follow these instructions:

  1. Step 1 instructions
a.   Do this

b.   Do that. Note the table below does NOT render.

| **Column 1** | **Column 2** |
|:-----------|:-----------|
| Row 1 Column1 | Row 1 Column2 |
| Row 2 Column1 | Row 2 Column2 |
  1. Step 2 instructions

Section 2

  1. Step 1 instructions

    a. Do this.

    b. Do that. This table renders after a put a blank line between the "section2step1" anchor and the the

    Column 1 Column 2
    Row 1 Column1 Row 1 Column2
    Row 2 Column1 Row 2 Column2
  2. Step 2 instructions