mirror of
https://github.com/markedjs/marked
synced 2024-11-22 17:37:24 +00:00
Load default options in demo
Per @styfle's suggestion, setting the options element's contents to the defaults on load.
This commit is contained in:
parent
14ab69a1e0
commit
cf7fab7051
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user