File tree 4 files changed +8
-3
lines changed
4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
3
+ process . on ( 'unhandledRejection' , console . error ) ;
4
+
3
5
const args = require ( '../args' ) ;
4
6
5
7
const defaults = {
Original file line number Diff line number Diff line change @@ -2,9 +2,11 @@ const {promisify} = require('util');
2
2
const read = promisify ( require ( 'fs' ) . readFile ) ;
3
3
const { resolve} = require ( 'path' ) ;
4
4
const marked = promisify ( require ( 'marked' ) ) ;
5
- const phrase = require ( 'paraphrase/double ' ) ;
5
+ const paraphrase = require ( 'paraphrase' ) ;
6
6
const DEFAULT_TEMPLATE = '{{content}}' ;
7
7
8
+ const phrase = paraphrase ( / { { ( [ ^ { } ] * ) } } / gm, { clean : true } ) ;
9
+
8
10
/**
9
11
* [description]
10
12
* @param {String } content Markdown content
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " markt" ,
3
- "version" : " 1.2.1 " ,
3
+ "version" : " 1.2.2 " ,
4
4
"description" : " Generate pages from markdown" ,
5
5
"author" : " omrilotan" ,
6
6
"license" : " MIT" ,
19
19
"dependencies" : {
20
20
"fs-extra" : " ^7.0.0" ,
21
21
"marked" : " ^0.6.0" ,
22
- "paraphrase" : " ^1.4.2 "
22
+ "paraphrase" : " ^1.7.0 "
23
23
},
24
24
"preferGlobal" : true
25
25
}
Original file line number Diff line number Diff line change 4
4
< meta charset ="utf-8 ">
5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge, chrome=1 ">
6
6
< title > {{ title }}</ title >
7
+ < meta name ="description " content ="{{ description }} ">
7
8
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
8
9
< meta name ="theme-color " content ="#FFFFFF "/>
9
10
< style >
You can’t perform that action at this time.
0 commit comments