From 0faab680ba9f11fc8e44293a016237f11ef3a6c2 Mon Sep 17 00:00:00 2001 From: Antonio Date: Tue, 29 Mar 2022 22:33:33 +0300 Subject: [PATCH] refactor!: drop support for and syntax BREAKING CHANGE: special Markdown syntax to handle and tags is now deprecated. Please use the HTML tags instead directly in Markdown document. --- README.md | 2 -- docs/markdown.md | 18 ------------------ src/extensions/text-modifications.js | 12 ------------ 3 files changed, 32 deletions(-) diff --git a/README.md b/README.md index 917303c..8d6cf6b 100644 --- a/README.md +++ b/README.md @@ -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] diff --git a/docs/markdown.md b/docs/markdown.md index a652363..e556442 100644 --- a/docs/markdown.md +++ b/docs/markdown.md @@ -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 @@ -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 diff --git a/src/extensions/text-modifications.js b/src/extensions/text-modifications.js index a2cc7fe..e69c11f 100644 --- a/src/extensions/text-modifications.js +++ b/src/extensions/text-modifications.js @@ -24,18 +24,6 @@ let markyText = (text) => { regex: /
/g,
       replace: '
'
     },
-    // SUBSCRIPT
-    {
-      type: 'output',
-      regex: /~(\d{1})~/g,
-      replace: '$1'
-    },
-    // SUPERSCRIPT
-    {
-      type: 'output',
-      regex: /\^(\d|\w)\^/g,
-      replace: '$1'
-    },
     // TABLE
     { 
       type: 'output',