Markup widget content update


#1

Hello, i have a project were I’m using ChartFactor to show some statistics of certain private repositories that come from an api, but I also need to show the description of the repository that is inside the README.md file and for this I’m using the Markup widget but dynamically updating the content of this widget is complicated because it doesn’t use the markdown syntax so I can’t show the text with the styles that I should, is there any way to use it to translate the text of the README.md file to the markdown widget format?


#2

I see the problem, Well, what I recommend is that you use our new widget called Markdown, it will allow you to use the text within your README.md directly in the visualization
here is an example:

const mdContent = `# Header 1
## Header 2
### Header 3

**Bold text** and *italic text* and ***bold italic text***

- Bullet 1
  - Sub-bullet 1

1. Numbered list item 1
2. Numbered list item 2

> Blockquote

\`Inline code\`

\`\`\`js
// Code block with syntax highlighting
function hello() {
  return "Hello, World!";
}
\`\`\`
`;
let aktive = cf.create();
let myChart = aktive.graph("Markdown")
    .set("content", mdContent)
    .element("my-md-chart")
    .execute();