mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 16:17:25 +02:00
Minor cleanup
This commit is contained in:
parent
fd01449db2
commit
cf5ee95a48
1 changed files with 0 additions and 1 deletions
|
@ -58,7 +58,6 @@ function extractMetadata(content) {
|
||||||
const keyvalue = lines[i].split(":");
|
const keyvalue = lines[i].split(":");
|
||||||
const key = keyvalue[0].trim();
|
const key = keyvalue[0].trim();
|
||||||
let value = keyvalue.slice(1).join(":").trim();
|
let value = keyvalue.slice(1).join(":").trim();
|
||||||
// Handle the case where you have "Community #10"
|
|
||||||
try {
|
try {
|
||||||
value = JSON.parse(value);
|
value = JSON.parse(value);
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue