Change metadata format
This commit is contained in:
parent
cd40e3af16
commit
f323bb3433
|
@ -82,11 +82,11 @@ const parseXML = (XML) => {
|
||||||
abstract = abstract.replace(/<br>/g, "\n");
|
abstract = abstract.replace(/<br>/g, "\n");
|
||||||
}
|
}
|
||||||
const md = `---
|
const md = `---
|
||||||
name: "${title}"
|
name: "${title.replace(/"/g, '\\"')}"
|
||||||
short: "${short}"
|
short: "${short.replace(/"/g, '\\"')}"
|
||||||
date: new Date("${date.toString()}")
|
date: "${date.toString().replace(/"/g, '\\"')}"
|
||||||
online: ${online}
|
online: ${online}
|
||||||
location: "${location}"
|
location: "${location.replace(/"/g, '\\"')}"
|
||||||
---
|
---
|
||||||
|
|
||||||
${abstract}`;
|
${abstract}`;
|
||||||
|
|
|
@ -48,8 +48,8 @@ const parseXML = (XML) => {
|
||||||
);
|
);
|
||||||
|
|
||||||
const md = `---
|
const md = `---
|
||||||
author: ${author}
|
author: "${author.replace(/"/g, '\\"')}"
|
||||||
date: new Date("${date}")
|
date: "${date.replace(/"/g, '\\"')}"
|
||||||
---
|
---
|
||||||
|
|
||||||
${content}`;
|
${content}`;
|
||||||
|
|
Loading…
Reference in New Issue