|
|
|
@ -212,6 +212,8 @@ const default_renderer = {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
export function transform(markdown, renderer = {}) {
|
|
|
|
export function transform(markdown, renderer = {}) {
|
|
|
|
marked.use({
|
|
|
|
marked.use({
|
|
|
|
|
|
|
|
mangle: false,
|
|
|
|
|
|
|
|
headerIds: false,
|
|
|
|
renderer: {
|
|
|
|
renderer: {
|
|
|
|
// we have to jump through these hoops because of marked's API design choices —
|
|
|
|
// we have to jump through these hoops because of marked's API design choices —
|
|
|
|
// options are global, and merged in confusing ways. You can't do e.g.
|
|
|
|
// options are global, and merged in confusing ways. You can't do e.g.
|
|
|
|
|