# Simple Markdown Viewer

A tiny Node.js app that serves **all** markdown (`.md`) files in the workspace with a two‑pane UI:

- **Left pane** – a collapsible directory tree.
- **Right pane** – the selected markdown rendered to HTML.

## Features
- Auto‑detects directories and markdown files.
- Click a folder to expand/collapse.
- Click a file to view it instantly.
- Runs on **port 8100** (http://localhost:8100).
- No build step – just `npm install` and `npm start`.

## Install & Run
```bash
cd /viewer
npm install   # installs express & markdown-it
npm start
```
Open your browser at `http://localhost:8100`.

The server serves the whole workspace (the parent of the `viewer` folder) as the markdown root, so you can browse any `.md` file, e.g. `Projects/POS/ICP.md`.

## Files
- `server.js` – Express backend with two APIs (`/api/tree` and `/api/md`).
- `public/` – static HTML/CSS/JS for the UI.
- `package.json` – npm metadata.

Enjoy!