function replaceByDiag(match, p1, p2) {
  const diagParts = p2.split(" ");
  return getDiagram({
    position: diagParts[0],
    marks: diagParts[1],
    orientation: diagParts[2],
    shadow: diagParts[3]
  });
}
// Method to replace diagrams in loaded HTML
Method to replace diagrams in loaded HTML
Method to replace diagrams in loaded HTML
function replaceByDiag(match, p1, p2) {
  const diagParts = p2.split(" ");
  return getDiagram({
    position: diagParts[0],
    marks: diagParts[1],
    orientation: diagParts[2],
    shadow: diagParts[3]
  });
}
function replaceByDiag ( match , p1 , p2 ) { const diagParts = p2 . split ( " " ) ; return getDiagram ( { position : diagParts [ 0 ] , marks : diagParts [ 1 ] , orientation : diagParts [ 2 ] , shadow : diagParts [ 3 ] } ) ; }
Method to replace diagrams in loaded HTML
Method to replace diagrams in loaded HTML