Allow any tag type in parseFrontMatter. <script> is still recommended where possible.

This commit is contained in:
Ludwig Schubert
2019-01-06 20:33:19 -08:00
parent 86ca6f72f4
commit ecfd28bdf9
+1 -1
View File
@@ -35,7 +35,7 @@ export function _moveLegacyAffiliationFormatIntoArray(frontMatter) {
}
export function parseFrontmatter(element) {
const scriptTag = element.querySelector('script');
const scriptTag = element.firstElementChild;
if (scriptTag) {
const type = scriptTag.getAttribute('type');
if (type.split('/')[1] == 'json') {