kindring 3 년 전
부모
커밋
00c1132382
3개의 변경된 파일26개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 3
      linux/开机自启相关.md
  2. 21 0
      test/markdownParseImage.js
  3. 0 2
      奇思妙想/test.md

+ 5 - 3
linux/开机自启相关.md

@@ -1,7 +1,7 @@
 <!--
 <!--
  * @Author: your name
  * @Author: your name
  * @Date: 2021-07-09 11:39:19
  * @Date: 2021-07-09 11:39:19
- * @LastEditTime: 2021-08-18 18:03:13
+ * @LastEditTime: 2021-08-24 16:16:22
  * @LastEditors: Please set LastEditors
  * @LastEditors: Please set LastEditors
  * @Description: In User Settings Edit
  * @Description: In User Settings Edit
  * @FilePath: \md-\linux\开机自启相关.md
  * @FilePath: \md-\linux\开机自启相关.md
@@ -37,7 +37,7 @@ WantedBy=multi-user.target
 ```shell
 ```shell
 sudo systemctl enable serverName
 sudo systemctl enable serverName
 ```
 ```
-### 启动服务
+### 启动服务进程
 ```shell
 ```shell
 sudo systemctl start serverName
 sudo systemctl start serverName
 ```
 ```
@@ -46,7 +46,7 @@ sudo systemctl start serverName
 > 常用命令基本上分为 start restart stop 
 > 常用命令基本上分为 start restart stop 
  
  
  <!-- tabs:start -->
  <!-- tabs:start -->
-#### **启动服务**
+#### **启动服务进程**
 ```shell
 ```shell
 sudo systemctl start serverName
 sudo systemctl start serverName
 ```
 ```
@@ -85,7 +85,9 @@ journalctl -u githook.service
 ```
 ```
 ### 更多使用技巧
 ### 更多使用技巧
 1. **查看最近的日志**
 1. **查看最近的日志**
+ 
 携带参数`n`加数字可以看到最近n条日志
 携带参数`n`加数字可以看到最近n条日志
+
 代码示例
 代码示例
 ```shell
 ```shell
 journalctl -n 100 -u githook.service
 journalctl -n 100 -u githook.service

+ 21 - 0
test/markdownParseImage.js

@@ -0,0 +1,21 @@
+/*
+ * @Author: your name
+ * @Date: 2021-08-24 11:48:53
+ * @LastEditTime: 2021-08-24 14:17:57
+ * @LastEditors: Please set LastEditors
+ * @Description: In User Settings Edit
+ * @FilePath: \md-\test\markdownParseImage.js
+ */
+let imageReg = /^\!\[\S+\]\(\S+\)/mg
+let testMdText = `
+# docsify使用图片
+![群友的图片](../img/奇怪群友的图1.jpg)
+![群友的图片](../img/奇怪群友的图3.jpg)
+![群友的图片](../img/奇怪群友的图4.jpg)
+`
+let dom = testMdText.match(imageReg).reduce((acc,current)=>{
+    return acc += current.replace(/^\!\[/,`<img src="`)
+    .replace(/\]\(/,`" title="`)
+    .replace(/\)/,`"></img>\n`)
+},'')
+console.log(dom)

+ 0 - 2
奇思妙想/test.md

@@ -1,2 +0,0 @@
-# 中控的形式
-## 使用js脚本来进行控制