File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change
1
+ > 有同学反馈说清单内容较多,一次无法读完,过了一段时间回来就记不清阅读进度了。为了便于大家分次阅读,我制作了一个页面,在每篇文章前加上选择框(选中checkbox表示已读)用于记录你已经读过的文章,便于下次回来时继续阅读。页面链接:[ Frontend Tech List] ( https://alienzhou.github.io/frontend-tech-list/ )
2
+
1
3
# 前端技术清单
2
4
3
5
学习文章的知识往往是碎片化的。而前端涉及到的面很广,这些知识如果不进行有效梳理,则无法相互串联、形成体系。因此,我结合工作体会将抽象出了一些前端基础能力,并将看过、写过的一些不错的文章进行整理,形成了一份(纯)前端技术清单。
Original file line number Diff line number Diff line change @@ -3,7 +3,12 @@ const path = require('path');
3
3
const fs = require ( 'fs' ) ;
4
4
5
5
function convertMd2Html ( ) {
6
+ const tip = '\r\n> 可以勾选读完的文章,记录会存储在localStorage中,便于下次访问时还原之前的阅读进度。' ;
7
+ const title = '# 前端技术清单' ;
6
8
let md = fs . readFileSync ( path . resolve ( __dirname , '../README.md' ) , 'utf-8' ) ;
9
+ const pairs = md . split ( title ) ;
10
+ md = title + tip + pairs [ 1 ] ;
11
+
7
12
const splitPattern = '## 0. 年度报告' ;
8
13
const parts = md . split ( splitPattern ) ;
9
14
parts [ 1 ] = parts [ 1 ] . replace ( / - \[ / g, '- [ ] [' ) ;
You can’t perform that action at this time.
0 commit comments