@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...
17 lines (16 loc) • 514 B
HTML
<!--HTMLHint doctype-first: false-->
<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>