Skip to content

FEATURE REQUEST rebundle modified front-matter object into markdown #96

@dimaslanjaka

Description

@dimaslanjaka

i was trying modify date from attribute.

console.log(`File: ${file}, Creation Date: ${creationDate}`);
	const read = fs.readFileSync(path.join(process.cwd(), file), {
		encoding: "utf-8",
	});
	try {
		const parse = fm(read);
		parse.attributes.date = creationDate;
		console.log(parse);
	} catch (error) {
		console.error(`fail parse ${file}`);
	}

the main problem is, how to rebundle into markdown front-matter format ?

---
title: xxxx
any other attributes
---

body string

add the function please

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions