MCPcopy
hub / github.com/Justineo/github-hovercard / renderMarkdown

Function renderMarkdown

src/hovercard.js:1554–1567  ·  view source on GitHub ↗
(content, context)

Source from the content-addressed store, hash-verified

1552 let requestOptions = Object.assign({}, baseOptions, { headers })
1553
1554 function renderMarkdown(content, context) {
1555 let options = {
1556 url: `${API_PREFIX}/markdown`,
1557 method: 'POST',
1558 contentType: 'application/json',
1559 dataType: 'text',
1560 data: JSON.stringify({
1561 text: content,
1562 mode: 'gfm',
1563 context: context
1564 })
1565 }
1566 return $.ajax(Object.assign({}, requestOptions, options))
1567 }
1568
1569 $.ajax(requestOptions)
1570 .done(raw => {

Callers 1

requestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected