diff --git a/build.js b/build.js index c05076ed..8c059f04 100644 --- a/build.js +++ b/build.js @@ -180,7 +180,7 @@ function renderEdge(edge) { function renderNode(node) { const strockWidth = 4 - const fontWeight = 'bold' + const fontWeight = 'normal' const fontFamily = 'Roboto, Oxygen, Ubuntu, Cantarell, sans-serif' let textOffsetX = 15 @@ -198,6 +198,12 @@ function renderNode(node) { textOffsetY = 0 } + // Format bold + if (node['text'].includes('**')) { + node['text'] = node['text'].replaceAll('**', ''); + fontWeight = 'bold'; + } + content = `