Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ang-zeyu committed Feb 21, 2020
1 parent 8a4900e commit 8679713
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 21 deletions.
9 changes: 5 additions & 4 deletions src/Site.js
Original file line number Diff line number Diff line change
Expand Up @@ -748,11 +748,12 @@ class Site {
Object.values(this.plugins).forEach((plugin) => {
if (!plugin.getSpecialTags) return;

plugin.getSpecialTags().forEach((tagName) => {
if (!tagName) return;
plugin.getSpecialTags(plugin.pluginsContext)
.forEach((tagName) => {
if (!tagName) return;

tagsToIgnore.add(tagName.toLowerCase());
});
tagsToIgnore.add(tagName.toLowerCase());
});
});

injectHtmlParser2SpecialTags(tagsToIgnore);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/markbind/src/lib/markdown-it/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ markdownIt.use(require('markdown-it-mark'))
.use(require('./markdown-it-radio-button'))
.use(require('./markdown-it-block-embed'))
.use(require('../markdown-it-shared/markdown-it-icons'))
.use(require('./markdown-it-footnotes'))
.use(require('./markdown-it-footnotes'));

// fix link
markdownIt.normalizeLink = require('./normalizeLink');
Expand Down
7 changes: 0 additions & 7 deletions src/template/default/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,6 @@ value2 | y | 20 | :far-thumbs-down:

<br>

<abc>
<thisshouldjustbetext>
abcdefgh
</thisshouldjustbetext>
</abc>


# Heading 3

<panel header="Expandable panel" type="info">
Expand Down
5 changes: 1 addition & 4 deletions src/template/default/site.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,5 @@
],
"deploy": {
"message": "Site Update."
},
"plugins": [
"testSpecialTag"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,6 @@ <h1 id="heading-2">Heading 2<a class="fa fa-anchor" href="#heading-2"></a></h1>
in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</box>
<br>
<abc>
<thisshouldjustbetext>
abcdefgh
</thisshouldjustbetext>
</abc>
<h1 id="heading-3">Heading 3<a class="fa fa-anchor" href="#heading-3"></a></h1>
<panel type="info"><template slot="_header"><p>Expandable panel</p></template> Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text. Some text some text some text some text some
text some text some text some text some text some text some text some text some text some text. Some text some text some text some text some text some text. Some text some text some text some text some text some text some text.
Expand Down

0 comments on commit 8679713

Please sign in to comment.