I’m working on a small website to host user manuals for my clients. To streamline the process, I’m using Kirby alongside a PHP Markdown parser so that I can simply upload an MD file of the manual and convert it into a static web page.
However, I encountered an unexpected file upload error whereby an.md file containing a code block with a <style> or <script> tag is flagged as an HTML file during the upload process. Funnily enough, other HTML tags can still be uploaded.
This can be uploaded without any issue:
```
<div>
<h1>…</h1>
</div>
```
But this can’t:
```
<style>
…
</style>
```
or
```
<script>
…
</script>
```
While I understand why HTML files aren’t allowed, preventing a Markdown file from being uploaded just because one of its code blocks contains an arbitrary tag seems a bit extreme.
I would be interested to know if there is a good reason for this safety measure and if there is a workaround for my specific use case.
For now, I have opted to create the file and its .txt counterpart manually in the content folder. This works, but is rather inconvenient.
Thank you in advance for your insights,
Noé Gogniat
