You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Make this proper Markdown -> HTML via showdown library
151
+
// Set some options to turn on various more advanced HTML conversions (see actual code at https://github.com/showdownjs/showdown/blob/master/src/options.js#L109):
152
+
constconverterOptions={
153
+
emoji: true,
154
+
footnotes: true,
155
+
ghCodeBlocks: true,
156
+
strikethrough: true,
157
+
tables: true,
158
+
tasklists: true,
159
+
metadata: false,// otherwise metadata is swallowed
160
+
requireSpaceBeforeHeadingText: true,
161
+
simpleLineBreaks: true// Makes this GFM style. TODO: make an option?
// Make this proper Markdown -> HTML via showdown library
149
-
// Set some options to turn on various more advanced HTML conversions (see actual code at https://github.com/showdownjs/showdown/blob/master/src/options.js#L109):
150
-
constconverterOptions={
151
-
emoji: true,
152
-
footnotes: true,
153
-
ghCodeBlocks: true,
154
-
strikethrough: true,
155
-
tables: true,
156
-
tasklists: true,
157
-
metadata: false,// otherwise metadata is swallowed
158
-
requireSpaceBeforeHeadingText: true,
159
-
simpleLineBreaks: true// Makes this GFM style. TODO: make an option?
// Add sticky button at top right offering to print
215
105
// (But printing doesn't work on i(Pad)OS ...)
216
106
if(NotePlan.environment.platform==='macOS'){
217
-
body =`<div class="stickyButton"><button class="nonPrinting" type="printButton"><a href="preview.html" onclick="window.open(this.href).print(); return false;">Print (opens in system browser)</a></button></div>\n`+body// Note: seems to need the .print() even though it doesn't activate in the browser.
107
+
body= `<divclass="stickyButton"><buttonclass="nonPrinting"type="printButton"><ahref="preview.html"onclick="window.open(this.href).print(); return false;">Print (opens in system browser)</a></button></div>\n${body}`//Note: seemstoneedthe.print()eventhoughitdoesn'tactivateinthebrowser.
218
108
}
109
+
219
110
constheaderTags=`<meta name="generator" content="np.Preview plugin by @jgclark v${pluginJson['plugin.version']??'?'}">
0 commit comments