-
Notifications
You must be signed in to change notification settings - Fork 4
/
config_example.ps1
101 lines (84 loc) · 3.94 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
91
92
93
94
95
96
97
98
99
100
101
# SPDX-License-Identifier: GPL-3.0
# 1) Rename this file to config.ps1 -keep it in the same folder as one.ps1
# 2) Configure the options below to your liking
# 3) Run .\one.ps1
# 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: Use existing .docx files (90% faster) - Default
# 2: Always create new .docx files
$docxReuse = 1
# Whether to discard word .docx after conversion
# 1: Keep .docx files - Default
# 2: Discard intermediate .docx files
$docxKeep = 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.<ext>) - Default
# 2: Add prefixes for subpages (e.g. Page_Subpage.<ext>)
$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.<ext>)). 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.<ext>), it is recommended to set this to at 100 or more.
# Default: 32
$muFileNameAndFolderNameMaxLength = 255
# Whether to store media in single or multiple folders
# 1: Separate 'media' folder for each folder in the hierarchy - Default
# 2: Images stored in single 'media' folder at Notebook-level
$mediaLocation = 1
# Specify Pandoc output format and optional extensions in the format
#
# <format><+extension><-extension>
#
# See:
# https://pandoc.org/MANUAL.html#options
#
# Recommended:
# <markup>-simple_tables-multiline_tables-grid_tables+pipe_tables
#
# Important:
# - "markdown" will produce Pandoc markdown, which includes syntax which
# may not be universally supported (eg: image width and height attributes
# https://pandoc.org/MANUAL.html#extension-link_attributes)
# - "markdown_github" will produce GitHub-flavored markdown, fully compatible
# with GitHub and VSCode
$conversion = 'org-simple_tables-multiline_tables-grid_tables+pipe_tables'
# Specify a custom Markup Pack to override default
# Options:
# <empty string> - Process with default Markup Pack
# none - Don't apply any post-processing (for debugging purposes)
# OrgPack1 - Org Mode pack shipping with OneNote Exporter
# MarkdownPack1 - Markdown pack shipping with OneNote Exporter
$markupPack = ''
# Whether to include page timestamp and separator at top of document
# 1: Include - Default
# 2: Don't include
$headerTimestamp = 1
# Whether to clear double spaces between bullets, non-breaking spaces from blank lines, and '>` after bullet lists
# 1: Clear double spaces in bullets - Default
# 2: Keep double spaces
# $keepspaces = 1
# Whether to clear escape symbols from markup 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 clear escape symbols from markup 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
$keepEmptyListItems = 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