diff --git a/components/Twemoji.vue b/components/Twemoji.vue index 3ddee893..5238c175 100644 --- a/components/Twemoji.vue +++ b/components/Twemoji.vue @@ -1,40 +1,34 @@ diff --git a/src/parseMarkdown.js b/src/parseMarkdown.js index 0c41689b..6674270d 100644 --- a/src/parseMarkdown.js +++ b/src/parseMarkdown.js @@ -1,4 +1,4 @@ -// import twemoji from 'twemoji'; +import twemoji from 'twemoji'; const census_groups = { 'location_poland': 'Osoby mieszkajÄ…ce w Polsce', @@ -77,7 +77,7 @@ export default async function parseMarkdown(markdown) { .replace(/

{census_groups}<\/p>(.+?)

{\/census_groups}<\/p>/gms, mainPlusDetails(census_groups, false)) .replace(/

{census_comparisons}<\/p>(.+?)

{\/census_comparisons}<\/p>/gms, mainPlusDetails(census_comparisons, true)) .replace(/{json=([^=}]+)=([^=}]+)}/g, fetchJson) - .replace(/

{twemoji}<\/p>(.+?)

{\/twemoji}<\/p>/gms, (_, c) => c) // twemoji.parse(c) + .replace(/

{twemoji}<\/p>(.+?)

{\/twemoji}<\/p>/gms, (_, c) => twemoji.parse(c)) + '' ; content = content.replace(/{table_of_contents}/g, generateToC(content));