Skip to content

Commit 0811e38

Browse files
bteaautofix-ci[bot]danielroe
authored
feat: render emojis in readmes (#277)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Daniel Roe <daniel@roe.dev>
1 parent 60a7759 commit 0811e38

2 files changed

Lines changed: 1921 additions & 1 deletion

File tree

server/utils/readme.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { hasProtocol } from 'ufo'
44
import type { ReadmeResponse } from '#shared/types/readme'
55
import { convertBlobToRawUrl, type RepositoryInfo } from '#shared/utils/git-providers'
66
import { highlightCodeSync } from './shiki'
7+
import { convertToEmoji } from '#shared/utils/emoji'
78

89
/**
910
* Playground provider configuration
@@ -407,7 +408,7 @@ export async function renderReadmeHtml(
407408
})
408409

409410
return {
410-
html: sanitized,
411+
html: convertToEmoji(sanitized),
411412
playgroundLinks: collectedLinks,
412413
}
413414
}

0 commit comments

Comments
 (0)