Skip to content

Commit 89280e0

Browse files
committed
fix(tsdocs): markdown links inside HTML table
This fixes an issue where the generated apidocs by `@microsoft/api-documenter` is not rendered properly by `kramdown` on the loopback.io Jekyll website. see: gettalong/kramdown#822 Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
1 parent a4926b8 commit 89280e0

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

package-lock.json

Lines changed: 25 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/tsdocs/src/update-api-md-docs.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ async function addJekyllMetadata(
8585

8686
const docFile = path.join(apiDocsRoot, f);
8787
let doc = await fs.readFile(docFile, 'utf-8');
88+
doc = doc.replace(/<td>/g, '<td markdown="1">');
8889

8990
const pkgName = name.split('.')[0];
9091
// Calculate the relative uri for the package

0 commit comments

Comments
 (0)