Skip to content
gnab edited this page Mar 8, 2013 · 51 revisions

Configuration is done either by setting configuration options directly in the <script> tag or by calling the remark.config method.

Setting options in the <script> tag

This method is convenient if you don't need any other JavaScript in your slideshow, as it saves you the trouble of creating that extra <script> tag:

<script src="remark.js" language="text/javascript">
  { "option": "value" }
</script>

Please notice that the configuration option-value object must be valid JSON, i.e. quotation marks must be used for keys and value strings instead of single quotes.

Setting options by calling remark.config.set method

This method uses ordinary JavaScript by calling the remark.config.set API method, accepting the same configuration option-value object mentioned above:

remark.config.set({ "option": "value" });

If you've already got some JavaScript in your slideshow, this is the preferred way.

Check out the list of configuration options.