Skip to content

Commit 0faab68

Browse files
committed
refactor!: drop support for <sub> and <sup> syntax
BREAKING CHANGE: special Markdown syntax to handle <sub> and <sup> tags is now deprecated. Please use the HTML tags instead directly in Markdown document.
1 parent 44cb210 commit 0faab68

File tree

3 files changed

+0
-32
lines changed

3 files changed

+0
-32
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ The main idea behind creating Antmarky was to have a generator with *zero config
1919
* Images with inline dimensions attributes
2020
* Reference links
2121
* Strikethrough
22-
* Subscript
23-
* Superscript
2422
* Tables
2523
* [Admonitions][admonitions]
2624
* [Syntax highlighting][syntax-highlight]

docs/markdown.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Antmarky uses `GitHub` flavor for the Markdown parser. The parser supports the f
77
* [Images with inline dimensions attributes](#image-dimensions)
88
* [Reference links](#reference-links)
99
* [Strikethrough](#strikethrough)
10-
* [Subscript](#subscript)
11-
* [Superscript](#superscript)
1210
* [Tables](#tables)
1311

1412
## Heading ids
@@ -55,22 +53,6 @@ a ~~strikethrough~~ element
5553

5654
a ~~strikethrough~~ element
5755

58-
## Subscript
59-
60-
```md
61-
H~2~O
62-
```
63-
64-
H~2~O
65-
66-
## Superscript
67-
68-
```md
69-
x^2^ * y^2^
70-
```
71-
72-
x^2^ * y^2^
73-
7456
## Tables
7557

7658
```md

src/extensions/text-modifications.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,6 @@ let markyText = (text) => {
2424
regex: /<pre><code>/g,
2525
replace: '<pre data-language="text"><code>'
2626
},
27-
// SUBSCRIPT
28-
{
29-
type: 'output',
30-
regex: /~(\d{1})~/g,
31-
replace: '<sub>$1</sub>'
32-
},
33-
// SUPERSCRIPT
34-
{
35-
type: 'output',
36-
regex: /\^(\d|\w)\^/g,
37-
replace: '<sup>$1</sup>'
38-
},
3927
// TABLE
4028
{
4129
type: 'output',

0 commit comments

Comments
 (0)