Skip to content

Faulty parsing of | within `Β #148

@garazdawi

Description

@garazdawi
iex(1)> EarmarkParser.as_ast "`a | b`\n`c | d`."
{:ok,
 [
   {"table", [],
    [
      {"tbody", [],
       [
         {"tr", [],
          [
            {"td", [{"style", "text-align: left;"}], ["`a"], %{}},
            {"td", [{"style", "text-align: left;"}], ["b`"], %{}}
          ], %{}},
         {"tr", [],
          [
            {"td", [{"style", "text-align: left;"}], ["`c"], %{}},
            {"td", [{"style", "text-align: left;"}], ["d`."], %{}}
          ], %{}}
       ], %{}}
    ], %{}}
 ], []}

According to the spec a table must have a delimeter row in order to be a table, but I guess this is hard to change due to backwards compatability. Not sure what can be done about this as it seems similar to #147. Posting it here so that we are aware of it.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions