I am working on a project where I need to automate the import of blog posts written in Markdown into a WordPress site. My Markdown files contain frontmatter for SEO metadata, author, tags, etc., and I want to integrate this metadata with the Yoast SEO plugin in WordPress.
Here’s the workflow I’m envisioning:
Read Markdown Files: The workflow should start by reading Markdown files from a specified source (like a local folder or cloud storage).
Extract Frontmatter and Content: Next, I need to extract the SEO metadata and other frontmatter information, along with the main content from these Markdown files.
Create WordPress Posts: These extracted details should then be used to create posts in WordPress, with the Markdown content being converted to HTML.
Update Yoast SEO Metadata: Finally, the SEO metadata from the frontmatter should be mapped and updated in the corresponding fields of the Yoast SEO plugin in WordPress.
I have a few questions and would greatly appreciate any guidance:
Are there existing nodes or functions in n8n that can facilitate the reading and parsing of Markdown files, especially for extracting frontmatter?
What is the best way to handle the conversion of Markdown to HTML within n8n?
Does n8n support direct integration with the Yoast SEO plugin, or will I need to make custom API calls to WordPress? If so, any tips on how to structure these calls?
Are there any examples or templates of similar workflows that I could refer to?
Any advice, suggestions, or pointers to resources would be incredibly helpful as I navigate setting up this workflow.
Thank you in advance for your support and insights!