adrianschubek / dir-browser

Directory Browser - Browse your files and folders on the web. Easy Docker setup.
https://dir.adriansoftware.de
MIT License
13 stars 4 forks source link

Markdown readme.md is not working #29

Closed zoumingzhe closed 4 weeks ago

zoumingzhe commented 1 month ago

Describe the bug

Create the following metadata (readme.md.dbmeta.json) for readme.md, the readme content on the page will not be displayed.

{
    "description": null,
    "labels": [],
    "hidden": true,
    "password": null,
    "hash_required": false
}

Expected behavior

When hidden is true, the readme.md content is also displayed.

Environment

adrianschubek commented 4 weeks ago

This is actually by design, I don't want to hide public files (e.g. readme.md is also visible in a GitHub repo file list). But I will consider adding a special file like "dbmeta.md" which will render just markdown and is hidden from the list.

adrianschubek commented 4 weeks ago

Implemented in v3.5 https://dir-demo.adriansoftware.de/examples/markdown/