Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dimaslanjaka opened this issue Apr 11, 2024 · 0 comments
Open

Comments

@dimaslanjaka
Copy link

dimaslanjaka commented Apr 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant