stateful / vscode-runme

DevOps Workflows Built with Markdown for VS Code
https://runme.dev
Apache License 2.0
182 stars 13 forks source link

Ignore non-recognized markdown contents #1455

Closed soubinan closed 3 days ago

soubinan commented 1 week ago

Hi,

Firstly, thank you for this great tool!

I am using it for weeks now, and I noticed an annoying issue.

When you have a markdown file with some exotic content (like presentations in Markdown format in instance) It will be great if RUNME could just ignore them (or raise a notification we can close) and let us read the markdown file anyway (without the RUNME parsing) Currently, RUNME shows an error instead of showing the file content. To have a kind of fallback behaviour will be nice, so the non-recognized Markdown format would still be usable in VS Code.

Below, a screenshot to illustrate my experience:

image

In this example, the Markdown is in a special format for Hugo:

$ cat archetypes/default.md 

+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++
sourishkrout commented 1 week ago

Thanks for reporting this issue, @soubinan. Runme's deserializer should indeed be able to ignore+retain the content. We'll look into it. Will keep you posted.