Skip to content

Commit 5315c79

Browse files
authored
Merge pull request #390 from cayxc/gh-pages
Mdmdt主题文件更新
2 parents 96b1a5d + 9c297da commit 5315c79

File tree

5 files changed

+23
-72
lines changed

5 files changed

+23
-72
lines changed

_posts/fork/2024-06-29-Mdmdt.md

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 23 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: theme
33
title: Mdmdt
4-
category: fork
4+
category: theme
55
homepage: https://github.com/cayxc/Mdmdt
66
download: https://github.com/cayxc/Mdmdt/tags
77
author: cayxc
@@ -11,6 +11,10 @@ typora-copy-images-to: ../../media/theme/mdmdt
1111
---
1212
![mdmdt-theme](/media/theme/mdmdt/mdmdt-cover.png)
1313
# About Mdmdt theme
14+
![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/cayxc/Mdmdt?include_prereleases&color=blue&logo=hack-the-box)
15+
![GitHub license](https://img.shields.io/github/license/cayxc/Mdmdt.svg)
16+
![GitHub forks](https://img.shields.io/github/forks/cayxc/Mdmdt?style=flat&logo=github&color=turquoise)
17+
![GitHub Repo stars](https://img.shields.io/github/stars/cayxc/Mdmdt?style=flat&logo=github&color=green)
1418

1519
[中文文档](https://github.com/cayxc/Mdmdt/blob/main/readme.zh.md)
1620

@@ -29,29 +33,20 @@ Compared to the default theme style, the following aspects have been mainly modi
2933
9. Document list style: changed to card structure
3034
10. Outline style: Added a directory tree structure, making the directory hierarchy more concise and clear
3135
11. Automatically follow the bright/dark theme mode of the system (the bright/dark theme can be set separately)
32-
3336
# Design sketch
34-
3537
**Light Theme:**
36-
3738
![mdmdt-light](/media/theme/mdmdt/mdmdt-light.png)
38-
3939
---
4040

4141
**Dark Theme:**
42-
4342
![mdmdt-dark](/media/theme/mdmdt/mdmdt-dark.png)
4443

45-
---
46-
4744
**Source Code Mode:**
48-
4945
![mdmdt-1](/media/theme/mdmdt/mdmdt-source-light.png)
5046
![mdmdt-1](/media/theme/mdmdt/mdmdt-source-dark.png)
51-
5247
**Other styles:**
53-
5448
![mdmdt-list](/media/theme/mdmdt/mdmdt-list.png)
49+
![mdmdt-1.png](/media/theme/mdmdt/mdmdt-1.png)
5550
![mdmdt-mermaid](/media/theme/mdmdt/mdmdt-mermaid.png)
5651
![mdmdt-ui-1](/media/theme/mdmdt/mdmdt-ui-1.png)
5752
![mdmdt-ui-2](/media/theme/mdmdt/mdmdt-ui-2.png)
@@ -60,58 +55,49 @@ Compared to the default theme style, the following aspects have been mainly modi
6055
![mdmdt-ui-5](/media/theme/mdmdt/mdmdt-ui-5.png)
6156

6257
# How to use it
63-
6458
Using custom themes is very simple, as follows:
6559

6660
1. Open `Preferences` -> `Appearance` -> `Open Theme Folder`
6761
2. Copy the downloaded `mdmdt.cs` file to the theme folder.
6862
3. **Exit Typora and reopen**,In the `Menu Bar` -> `Themes`, Select **Mdmdt** theme and complete the theme switch.
69-
7063
> [!NOTE]
7164
> **Note:** The mdmdt.css file contains both bright and dark themes, which will automatically switch between bright and dark themes according to the system mode.
7265
7366
##### Use separate Light/Dark theme
74-
7567
If you only want to use a separate bright or dark theme, the method is as follows:
7668
1. Open `Preferences` -> `Appearance` -> `Open Theme Folder`
7769
2. Copy `mdmdt-light.css` or `mdmdt-dark.css ` to the theme folder.
7870
3. **Exit Typora and reopen**,In the `Menu Bar` -> `Themes`, Select **Mdmdt Light** or **Mdmdt Dark** theme and complete the theme switch.
79-
8071
# Export HTML
81-
8272
To export an HTML file, you can directly select the current theme to export HTML
8373
**If you want to export HTML files with customizable styles, you can use the Mdtht plugin:**
8474

8575
Plugin homepage address: [Mdtht-Github-address](https://github.com/cayxc/Mdtht) [Mdtht-Gitee-address]( https://gitee.com/cayxc/mdtht )
86-
This plugin provides the following rich features:
8776

88-
1. Follow the system to automatically switch between bright and dark color modes.
89-
2. Manually switch between light and dark color modes.
90-
3. Automatically generate table of contents numbers and body area title indexes.
91-
4. You can choose to convert the first title into an article title and center the title.
92-
5. Automatically correct the directory hierarchy based on the position of the titles in the main text.
93-
6. Show/hide directory index numbers.
94-
7. Switch between three types of directory button styles.
95-
8. Automatically track the current reading area location to the current directory and upper level directory.
96-
9. Expand the screwdriver directory with one click.
97-
10. One click expand and collapse the sidebar.
98-
11. Catalog search.
99-
12. Code highlighting.
100-
13. Text Shadow Mode.
77+
This plugin provides the following rich features:
78+
1. Two document style modes, high brightness and dark, can be automatically switched based on the system or manually set.
79+
2. Automatically generate corresponding hierarchical directories and serial numbers based on the position of h1~h6 tags in the HTML document.
80+
3. Automatically correct the directory hierarchy based on the position of the h tag.
81+
4. Automatically generate sidebar directory navigation.
82+
5. Drag to change the width of the sidebar.
83+
6. Show or hide title numbering.
84+
7. Directory hierarchical tree view.
85+
8. 3 types of directory icon styles.
86+
9. Text Shadow Effect.
87+
10. One click expansion of storage subdirectories.
88+
11. One click expansion and collapse of sidebar.
89+
12. Automatically track the directory based on the content of the reading area.
90+
13. Catalog search.
91+
14. Code highlighting plugin **highlightjs** style beautification,[highlightjs](https://highlightjs.org/)
92+
15. Personalize configuration styles based on personal preferences.
10193

10294
Please refer to the plugin homepage for specific details of **mdtht.js** plugin.
10395

104-
105-
10696
**Export mdtht.js as an HTML rendering (Light theme)**
10797

10898
---
109-
11099
<img src="/media/theme/mdmdt/mdmdt-2.png"/>**Export mdtht.js as an HTML rendering (Dark theme)**
111100

112101
---
113-
114-
<img src="./media/theme/mdmdt/mdmdt-5.png"/>
115-
116-
---
102+
<img src="/media/theme/mdmdt/mdmdt-5.png"/>
117103

media/theme/mdmdt/mdmdt-1.png

653 KB
Loading

media/theme/mdmdt/mdmdt-cover.png

29.8 KB
Loading

media/thumbnails/mdmdt.png

-409 KB
Loading

0 commit comments

Comments
 (0)