From cf7fab70516392cd62be095b829cf1deb6f92d0f Mon Sep 17 00:00:00 2001 From: aprotim Date: Thu, 18 Oct 2018 11:02:57 -0700 Subject: [PATCH] Load default options in demo Per @styfle's suggestion, setting the options element's contents to the defaults on load. --- docs/demo/demo.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/demo/demo.js b/docs/demo/demo.js index a348bce5..6b3d9862 100644 --- a/docs/demo/demo.js +++ b/docs/demo/demo.js @@ -48,6 +48,8 @@ if ('text' in search) { if ('options' in search) { $optionsElem.value = search.options; +} else { + $optionsElem.value = JSON.stringify(marked.getDefaults(), null, ' '); } if (search.outputType) {