Skip to content

Commit

Permalink
I112 bad para in wikilinks (#114)
Browse files Browse the repository at this point in the history
* Don't wrap labeled wikilinks in p tags (#113)

The line scanner was recognizing the | in a wikilink label as a table
column separator. This eventually still got turned into a link, but by
then, it was already wrapped in a Para block.

To fix this, eat anything wrapped in double square brackets before
looking for the table regex.

Co-authored-by: Ben Olive <sionide21@gmail.com>

* Added RELEASE NOTES for 1.4.28

* modernised wikilinks tests

* testing all: true implemented, bug for <sup> fixed

* fixing doctest for 1.11

* Prepare rel 1.4.28

Co-authored-by: Ben Olive <sionide21@gmail.com>
  • Loading branch information
RobertDober and sionide21 committed Oct 1, 2022
1 parent b1be87b commit 11b422a
Show file tree
Hide file tree
Showing 11 changed files with 440 additions and 200 deletions.
216 changes: 141 additions & 75 deletions README.md

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@

- [Depreacting message to be passed in as an array in options, and fixing it](https://github.com/robertdober/earmark_parser/issues/86)

## 1.4.28 2022-10-01

- [Do not wrap labelled wikilinks in `<p>` tags](https://github.com/RobertDober/earmark_parser/pull/112)

Kudos to [Ben Olive](https://github.com/sionide21)

- Add option `all: true` enabling all options which are disabled by default, which are:
`breaks`, `footnotes`, `gfm_tables`, `sub_sup`, `wikilinks`

- Fix bug for `a^n^` not being parsed as sup

## 1.4.27 2022-09-30

- [Nice addition of sub and sup elements](https://github.com/RobertDober/earmark_parser/tree/i108-sub-and-sup)
Expand Down
Loading

0 comments on commit 11b422a

Please sign in to comment.