MCPcopy Create free account
hub / github.com/hackmdio/codimd / deserializeParamAttributeFromElement

Function deserializeParamAttributeFromElement

public/js/lib/markdown/utils.js:46–53  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

44 * @param {HTMLElement} elem
45 */
46export function deserializeParamAttributeFromElement (elem) {
47 const params = elem.getAttribute('data-params')
48 if (params) {
49 return JSON.parse(unescape(params))
50 } else {
51 return {}
52 }
53}

Callers 1

finishViewFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected