forked from SjoerdV/ConvertOneNote2MarkDown
-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy pathconfig.example.ps1
90 lines (75 loc) · 3.74 KB
/
config.example.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#
# Note: This config file is for those who are lazy to type in configuration everytime you run ./ConvertOneNote2MarkDown-v2.ps1
#
# Steps:
# 1) Rename this file to config.ps1. Ensure it is in the same folder as the ConvertOneNote2MarkDown-v2.ps1 script
# 2) Configure the options below to your liking
# 3) Run the main script: ./ConvertOneNote2MarkDown-v2.ps1. Sit back while the script starts converting immediately.
# Whether to do a dry run
# 0: Convert - Default
# 1: Dry run
$dryRun = 0
# Specify folder path that will contain your resulting Notes structure - Default: c:\temp\notes
$notesdestpath = 'c:\temp\notes'
# Specify a notebook name to convert
# '': Convert all notebooks - Default
# 'mynotebook': Convert specific notebook named 'mynotebook'
$targetNotebook = ''
# Whether to create new word .docx or reuse existing ones
# 1: Always create new .docx files - Default
# 2: Use existing .docx files (90% faster)
$usedocx = 1
# Whether to discard word .docx after conversion
# 1: Discard intermediate .docx files - Default
# 2: Keep .docx files
$keepdocx = 1
# Whether to use name .docx files using page ID with last modified date epoch, or hierarchy
# 1: Use page ID with last modified date epoch (recommended if you chose to use existing .docx files) - Default
# 2: Use hierarchy
$docxNamingConvention = 1
# Whether to use prefix vs subfolders
# 1: Create folders for subpages (e.g. Page\Subpage.md) - Default
# 2: Add prefixes for subpages (e.g. Page_Subpage.md)
$prefixFolders = 1
# Specify a value between 32 and 255 as the maximum length of markdown file names, and their folder names (only when using subfolders for subpages (e.g. Page\Subpage.md)). File and folder names with length exceeding this value will be truncated accordingly.
# NOTE: If you are using prefixes for subpages (e.g. Page_Subpage.md), it is recommended to set this to at 100 or more.
# Default: 32
$mdFileNameAndFolderNameMaxLength = 32
# Whether to store media in single or multiple folders
# 1: Images stored in single 'media' folder at Notebook-level - Default
# 2: Separate 'media' folder for each folder in the hierarchy
$medialocation = 1
# Specify Pandoc output format and optional extension(s) in the format: <markdownformat><+extension><-extension>
# Use this to customize the markdown flavor
# Extension(s) must be supported by your pandoc version. See: https://pandoc.org/MANUAL.html#options
# Examples:
# markdown-simple_tables-multiline_tables-grid_tables+pipe_tables
# commonmark+pipe_tables
# gfm+pipe_tables
# markdown_mmd-simple_tables-multiline_tables-grid_tables+pipe_tables
# markdown_phpextra-simple_tables-multiline_tables-grid_tables+pipe_tables
# markdown_strict+simple_tables-multiline_tables-grid_tables+pipe_tables
# Default:
# markdown-simple_tables-multiline_tables-grid_tables+pipe_tables
$conversion = 'markdown-simple_tables-multiline_tables-grid_tables+pipe_tables'
# Whether to include page timestamp and separator at top of document
# 1: Include - Default
# 2: Don't include
$headerTimestampEnabled = 1
# Whether to clear extra newlines between unordered (bullet) and ordered (numbered) list items, non-breaking spaces from blank lines, and `>` after unordered lists
# 1: Clear - Default
# 2: Don't clear
$keepspaces = 1
# Whether to clear escape symbols from md files. See: https://pandoc.org/MANUAL.html#backslash-escapes
# 1: Clear all '\' characters - Default
# 2: Clear all '\' characters except those preceding alphanumeric characters
# 3: Keep '\' symbol escape
$keepescape = 1
# Whether to use Line Feed (LF) or Carriage Return + Line Feed (CRLF) for new lines
# 1: LF (unix) - Default
# 2: CRLF (windows)
$newlineCharacter = 1
# Whether to include a PDF export alongside the markdown file
# 1: Don't include PDF - Default
# 2: Include PDF
$exportPdf = 1