UNPKG

@phoenix-plugin-registry/brackets-markdown-preview

Version:

Markdown live preview incl. detached window, code syntax highlighting, output themes, adaptive preview width, graphical checkboxes, activation on start...

27 lines 983 B
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <meta name="generator" content="brackets-markdown-preview"> <meta name="description" content="Preview of the Markdown document 'XYZ'"> <title>XYZ (HIGHLIGHT)</title> </head> <body> <h1>Test HIGHLIGHTING II</h1> <p>a code fragment is following...</p> <pre><code> function _updateSettings() { console.log("_updateSettings()"); // if using GFM while the adaptive width mode is active, then disable the "break" option. var useGFM = PreviewPreferences.useGFM; var useAdaptiveWidth = PreviewPreferences.adaptiveWidth; var useBreaks = useGFM && !useAdaptiveWidth; marked.setOptions({ breaks: useBreaks, gfm: useGFM }); // Re-render _loadDoc(currentDoc); } </code></pre> </body> </html>