mirror of
https://github.com/wassname/template.git
synced 2026-06-27 19:17:15 +08:00
Allow any tag type in parseFrontMatter. <script> is still recommended where possible.
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user