1 Star 1 Fork 0

马红权 / notable

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
config.js 1.72 KB
一键复制 编辑 原始数据 按行查看 历史
mahongquan 提交于 2021-03-27 08:48 . init
/* IMPORT */
// import * as path from 'path';
const path=require("path")
// import Settings from './settings';
/* CONFIG */
const Config = {
get cwd () {
// return Settings.get ( 'cwd' );
return "";
},
attachments: {
get path () {
const cwd = Config.cwd;
return cwd ? path.join ( cwd, 'attachments' ) : undefined;
},
globs: ['**/*', '!**/.*'],
re: /attachments(?:\\|\/)(?!\.).*$/, // Excluding dot files
token: '@attachment' // Usable in urls
},
notes: {
get path () {
const cwd = Config.cwd;
return cwd ? path.join ( cwd, 'notes' ) : undefined;
},
globs: ['**/*.{md,mkd,mdwn,mdown,markdown,markdn,mdtxt,mdtext,txt}'],
re: /\.(?:md|mkd|mdwn|mdown|markdown|markdn|mdtxt|mdtext|txt)$/,
token: '@note' // Usable in urls
},
tags: {
token: '@tag' // Usable in urls
},
search: {
tokenizer: /\s+/g
},
sorting: {
// by: Settings.get ( 'sorting.by' ),
// type: Settings.get ( 'sorting.type' )
},
flags: {
TUTORIAL: true, // Write the tutorial notes upon first instantiation
OPTIMISTIC_RENDERING: true // Assume writes are successful in order to render changes faster
},
katex: {
throwOnError: true,
displayMode: false,
errorColor: '#f44336',
delimilters: [
{ left: '¨D¨D', right: '¨D¨D', display: true }, // showdown converts `$$` to `¨D¨D`
{ left: '\\(', right: '\\)', display: false },
{ left: '\\[', right: '\\]', display: true },
{ left: '~', right: '~', display: false, asciimath: true },
{ left: '&&', right: '&&', display: true, asciimath: true }
]
},
mermaid: {}
};
/* EXPORT */
module.exports=Config;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mahongquan/notable.git
git@gitee.com:mahongquan/notable.git
mahongquan
notable
notable
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891