Skip to content

Commit ddc0cdd

Browse files
author
Chris Whittle
committed
changes from PR
1 parent d9125b2 commit ddc0cdd

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

helpers/HTMLView.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,11 @@ export function getCallbackCodeString(jsFunctionName: string, commandName: strin
9898

9999
/**
100100
* Convert a note's content to HTML and include any images as base64
101-
* @author @cwhittl
102101
* @param {string} content
103-
* @param {NPNote} Note
102+
* @param {TNote} Note
104103
* @returns {string} HTML
105104
*/
106-
export async function getNoteContentAsHTML(content: string, note: NPNote): ?string {
105+
export async function getNoteContentAsHTML(content: string, note: TNote): ?string {
107106
try {
108107
let lines = content?.split('\n') ?? []
109108

np.Preview/src/previewMain.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ Button a { text-decoration: none; font-size: 0.9rem; }
7474
* @author @jgclark
7575
* @param {string?} mermaidTheme name (optional)
7676
*/
77-
export async function previewNote(mermaidTheme?: string): void {
77+
export async function previewNote(mermaidTheme?: string = "green"): void {
7878
try {
79-
const { note, content, title } = Editor
79+
const { note, content } = Editor
8080
let lines = content?.split('\n') ?? []
8181
lines = lines.filter(l => l !== 'triggers: onEditorWillSave => np.Preview.updatePreview')
8282
// Update mermaid fenced code blocks to suitable <divs>

0 commit comments

Comments
 (0)