https://github.com/zain-ul-din/md2web
A simple program to convert markdowns to html files
https://github.com/zain-ul-din/md2web
collaborate markdown markdown-to-html notes notes-app open-source
Last synced: 4 months ago
JSON representation
A simple program to convert markdowns to html files
- Host: GitHub
- URL: https://github.com/zain-ul-din/md2web
- Owner: Zain-ul-din
- License: mit
- Created: 2023-12-02T18:34:18.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-29T11:39:50.000Z (12 months ago)
- Last Synced: 2025-02-14T15:12:08.219Z (4 months ago)
- Topics: collaborate, markdown, markdown-to-html, notes, notes-app, open-source
- Language: TypeScript
- Homepage:
- Size: 185 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: .github/readme.md
- License: LICENSE
Awesome Lists containing this project
README
# MarkDown to HTML
A simple compiler that converts markdown files to html.
## Motivation 🔥
Often, we find ourselves needing to download MS Word or other software to create assignments, but using these can be a daunting task. If you're someone who prefers not to waste time and resources downloading third-party software and wants to enhance productivity with minimal effort, this tool can assist you in generating documents directly from markdown.
## Usage
- create folder `markdowns` in root directory.
- create file `index.md` inside `markdowns`
- add following content for testing```md
# Heading
## Heading 1
### Heading 3**bold**
> quote
`code`
```- install dependencies `npx yarn`
- run application `npx yarn dev`
- install `live server` extension in VS code and open html file (inside public folder) with live server.# Intermediate Usage
### Add Meta tags
- To add title and description to page add following code on the top of markdown file
```.md
---
title: Operating System Notes
description: My Operating System Notes
---
```# Advance Usage
### Add custom theme
By default, the `config.ts` file contains two themes. To add a new theme, follow these steps:
- Open `Config.d.ts` and include the theme name in the `Theme` type. For example, add `neon: CSSVariables`.
- Open `config.ts` and insert the CSS variables for the new theme using key-value pairs. Update the theme object as follows:
```typescript
const theme: Theme = {
...
neon: {
...
}
}
```**Applying Theme**
- By default, theme is set to system preferences. to apply the new theme, include it in the markdown head section like this:
```md
---
...
theme: neon
---
```-----------------