themed-markdown 0.1.0
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 +81 -0
- package/dist/index.css +60 -0
- package/dist/index.js +43345 -0
- package/package.json +171 -0
package/README.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# themed-markdown
|
|
2
|
+
|
|
3
|
+
Industry-themed markdown renderer with presentation capabilities.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- 🎨 Beautiful industry-themed styling
|
|
8
|
+
- 📊 Mermaid diagram support
|
|
9
|
+
- 🎯 Presentation mode with slide navigation
|
|
10
|
+
- 🌓 Dark/light theme support
|
|
11
|
+
- 📱 Responsive design
|
|
12
|
+
- âš¡ Built with React and TypeScript
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install themed-markdown
|
|
18
|
+
# or
|
|
19
|
+
yarn add themed-markdown
|
|
20
|
+
# or
|
|
21
|
+
bun add themed-markdown
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```tsx
|
|
27
|
+
import { IndustryMarkdownSlide } from 'themed-markdown/industryMarkdown';
|
|
28
|
+
import { ThemeProvider } from 'themed-markdown/industryTheme';
|
|
29
|
+
|
|
30
|
+
function App() {
|
|
31
|
+
const markdownContent = `
|
|
32
|
+
# My Presentation
|
|
33
|
+
|
|
34
|
+
## Slide 1
|
|
35
|
+
Content for the first slide
|
|
36
|
+
|
|
37
|
+
## Slide 2
|
|
38
|
+
Content for the second slide
|
|
39
|
+
`;
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<ThemeProvider>
|
|
43
|
+
<IndustryMarkdownSlide
|
|
44
|
+
markdown={markdownContent}
|
|
45
|
+
slideId="slide-1"
|
|
46
|
+
/>
|
|
47
|
+
</ThemeProvider>
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Development
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# Install dependencies
|
|
56
|
+
bun install
|
|
57
|
+
|
|
58
|
+
# Run tests
|
|
59
|
+
bun test
|
|
60
|
+
|
|
61
|
+
# Build the project
|
|
62
|
+
bun run build
|
|
63
|
+
|
|
64
|
+
# Type check
|
|
65
|
+
bun run typecheck
|
|
66
|
+
|
|
67
|
+
# Lint
|
|
68
|
+
bun run lint
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## License
|
|
72
|
+
|
|
73
|
+
MIT
|
|
74
|
+
|
|
75
|
+
## Contributing
|
|
76
|
+
|
|
77
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
78
|
+
|
|
79
|
+
## Credits
|
|
80
|
+
|
|
81
|
+
Developed by [a24z.ai](https://a24z.ai)
|
package/dist/index.css
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* node_modules/highlight.js/styles/atom-one-dark.css */
|
|
2
|
+
pre code.hljs {
|
|
3
|
+
display: block;
|
|
4
|
+
overflow-x: auto;
|
|
5
|
+
padding: 1em;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
code.hljs {
|
|
9
|
+
padding: 3px 5px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.hljs {
|
|
13
|
+
color: #abb2bf;
|
|
14
|
+
background: #282c34;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.hljs-comment, .hljs-quote {
|
|
18
|
+
color: #5c6370;
|
|
19
|
+
font-style: italic;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.hljs-doctag, .hljs-keyword, .hljs-formula {
|
|
23
|
+
color: #c678dd;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.hljs-section, .hljs-name, .hljs-selector-tag, .hljs-deletion, .hljs-subst {
|
|
27
|
+
color: #e06c75;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.hljs-literal {
|
|
31
|
+
color: #56b6c2;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.hljs-string, .hljs-regexp, .hljs-addition, .hljs-attribute, .hljs-meta .hljs-string {
|
|
35
|
+
color: #98c379;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.hljs-attr, .hljs-variable, .hljs-template-variable, .hljs-type, .hljs-selector-class, .hljs-selector-attr, .hljs-selector-pseudo, .hljs-number {
|
|
39
|
+
color: #d19a66;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.hljs-symbol, .hljs-bullet, .hljs-link, .hljs-meta, .hljs-selector-id, .hljs-title {
|
|
43
|
+
color: #61aeee;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.hljs-built_in, .hljs-title.class_, .hljs-class .hljs-title {
|
|
47
|
+
color: #e6c07b;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.hljs-emphasis {
|
|
51
|
+
font-style: italic;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.hljs-strong {
|
|
55
|
+
font-weight: bold;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.hljs-link {
|
|
59
|
+
text-decoration: underline;
|
|
60
|
+
}
|