mc-markdown-viewer 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -0
- package/main.js +2 -0
- package/package.json +1 -1
- package/pub.sh +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Markdown to HTML CLI
|
|
2
|
+
|
|
3
|
+
> A CLI tool to convert Markdown files into beautifully styled HTML pages with a dark theme
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- Converts Markdown files to HTML
|
|
10
|
+
- Automatically open the generated HTML in the default browse
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
Install globally via npm:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install -g mc-markdown-viewer
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
```bash
|
|
23
|
+
|
|
24
|
+
md-viewer --help # get help
|
|
25
|
+
|
|
26
|
+
md-viewer -f README.md -t forest
|
|
27
|
+
```
|
package/main.js
CHANGED
|
@@ -62,6 +62,8 @@ const htmlTemplate = (content, theme = 'default') => {
|
|
|
62
62
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
63
63
|
<title>Markdown Viewer</title>
|
|
64
64
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
65
|
+
<link rel="icon" type="image/x-icon"
|
|
66
|
+
href="https://mohan-chinnappan-n5.github.io/dfv/img/mc_favIcon.ico" />
|
|
65
67
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
66
68
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
67
69
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
|
package/package.json
CHANGED
package/pub.sh
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
npm publish --access public
|