Skip to content

Commit

Permalink
refactor!: drop support for <sub> and <sup> syntax
Browse files Browse the repository at this point in the history
BREAKING CHANGE: special Markdown syntax to handle
<sub> and <sup> tags is now deprecated. Please use
the HTML tags instead directly in Markdown document.
  • Loading branch information
bandantonio committed Mar 29, 2022
1 parent 44cb210 commit 0faab68
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 32 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ The main idea behind creating Antmarky was to have a generator with *zero config
* Images with inline dimensions attributes
* Reference links
* Strikethrough
* Subscript
* Superscript
* Tables
* [Admonitions][admonitions]
* [Syntax highlighting][syntax-highlight]
Expand Down
18 changes: 0 additions & 18 deletions docs/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ Antmarky uses `GitHub` flavor for the Markdown parser. The parser supports the f
* [Images with inline dimensions attributes](#image-dimensions)
* [Reference links](#reference-links)
* [Strikethrough](#strikethrough)
* [Subscript](#subscript)
* [Superscript](#superscript)
* [Tables](#tables)

## Heading ids
Expand Down Expand Up @@ -55,22 +53,6 @@ a ~~strikethrough~~ element

a ~~strikethrough~~ element

## Subscript

```md
H~2~O
```

H~2~O

## Superscript

```md
x^2^ * y^2^
```

x^2^ * y^2^

## Tables

```md
Expand Down
12 changes: 0 additions & 12 deletions src/extensions/text-modifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,6 @@ let markyText = (text) => {
regex: /<pre><code>/g,
replace: '<pre data-language="text"><code>'
},
// SUBSCRIPT
{
type: 'output',
regex: /~(\d{1})~/g,
replace: '<sub>$1</sub>'
},
// SUPERSCRIPT
{
type: 'output',
regex: /\^(\d|\w)\^/g,
replace: '<sup>$1</sup>'
},
// TABLE
{
type: 'output',
Expand Down

0 comments on commit 0faab68

Please sign in to comment.