Hi Gary,

If MarkDown is handled on the client, e.g. using something like
marked.js, an alternative is to handle the formatting of the JSON
snippets on the client as well (directly in JS in the browser).

Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2o.consulting/ - New website!


On 1 December 2016 at 21:25, Gary Vidal wrote:
> Thanks Justin,
>
> I figured that one out about JSON.stringify.  Ideally, it would be best to
> eval to a function which can be reused.  Of course safety and performance
> would be issue.  Not sure if V8 connection is kept open during xquery
> evaluation. Anyways its for a small documentation app, that just pretty
> prints json examples for view on MarkDown page.  I can deal with indented
> json in a large file of examples. :-)
>
> _______________________________________________
> General mailing list
> [email protected]
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to