Skip to content

Commit

Permalink
chore: version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
arunjaindev committed Nov 25, 2024
1 parent bf9b7ec commit 8d3648c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devtron-labs/devtron-fe-common-lib",
"version": "1.1.3",
"version": "1.1.3-beta-3",
"description": "Supporting common component library",
"type": "module",
"main": "dist/index.js",
Expand Down
16 changes: 7 additions & 9 deletions src/Common/Markdown/MarkDown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ const MarkDown = ({ setExpandableIcon, markdown, className, breaks, disableEscap
getHeight()
}, [markdown])

const renderTableRow = (row: Tokens.TableCell[]) => `
<tr>
${row.map((rowCell) => `<td align="${rowCell.align}">${marked(rowCell.text)}</td>`).join('')}
</tr>
`

renderer.listitem = ({ text, task, checked }: Tokens.ListItem) => {
if (task) {
if (checked) {
Expand All @@ -56,14 +62,7 @@ const MarkDown = ({ setExpandableIcon, markdown, className, breaks, disableEscap
renderer.image = ({ href, title, text }: Tokens.Image) =>
`<img src="${href}" alt="${text}" title="${title}" class="max-w-100">`

renderer.table = ({ header, rows }: Tokens.Table) => {
const renderTableRow = (row: Tokens.TableCell[]) => `
<tr>
${row.map((rowCell) => `<td align="${rowCell.align}">${marked(rowCell.text)}</td>`).join('')}
</tr>
`

return `
renderer.table = ({ header, rows }: Tokens.Table) => `
<div class="table-container">
<table>
<thead>
Expand All @@ -75,7 +74,6 @@ const MarkDown = ({ setExpandableIcon, markdown, className, breaks, disableEscap
</table>
</div>
`
}

renderer.heading = ({ text, depth }: Tokens.Heading) => {
const escapedText = disableEscapedText ? '' : text.toLowerCase().replace(/[^\w]+/g, '-')
Expand Down

0 comments on commit 8d3648c

Please sign in to comment.