Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
CuzImBisonratte committed Apr 7, 2024
1 parent 2d85b62 commit 449869e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ articles.forEach(article => {
const article_output_path = path.join(config.build.output_dir, article_attributes.url, "index.html");

// Generate article output
var article_output = article_html.replace(/[äöüÄÖÜ߀$&§@]/g, match => {
//
// Because of unknown behavior of showdown (GH-Issue:#1004) sometimes ampersands are html-encoded and sometimes they aren't, therefore we have to check for already encoded ampersands
var article_output = article_html.replace(/[äöüÄÖÜ߀$&§@](?!amp;)/g, match => {
switch (match) {
case 'ä':
return 'ä';
Expand Down

0 comments on commit 449869e

Please sign in to comment.