jeffreytse / jekyll-spaceship

🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
MIT License
626 stars 67 forks source link

Problem with escaped single quote in table with hyperlinks #93

Open mattjlewis opened 10 months ago

mattjlewis commented 10 months ago

I am using Jekyll-spaceship v0.10.2 and have noticed strange behaviour with the table-processor.

Given the test document below, the fourth table is messed up after the cell with a hyperlink. All other tables display correctly.

image
---
title: test
---
## Table 1 - No escape, no links

| Id | Col 1 | Col 2 | Col 3 |
|----------
| 1 | Won't | Must | Can't |
| 2 | Can't | Won't | Must |
| 3 | Must | Won't | Can't |

## Table 2 - With escape, no links

| Id | Col 1 | Col 2 | Col 3 |
|----------
| 1 | Won\'t | Must | Can\'t |
| 2 | Can\'t | Won\'t | Must |
| 3 | Must | Won\'t | Can\'t |

## Table 3 - No escape, with links

| Id | Col 1 | Col 2 | Col 3 |
|----------
| 1 | Won't | Must | Can't |
| [2](/test) | Can't | Won't | Must |
| 3 | Must | Won't | Can't |

## Table 4 - With escape, with links

| Id | Col 1 | Col 2 | Col 3 |
|----------
| 1 | Won\'t | Must | Can\'t |
| [2](/test) | Can\'t | Won\'t | Must |
| 3 | Must | Won\'t | Can\'t |