Skip to content

Commit

Permalink
[backend:add] Support emoji for SVG
Browse files Browse the repository at this point in the history
  • Loading branch information
nwtgck committed Jun 15, 2019
1 parent 0d5eb13 commit b577950
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ object GitHubRepositorySvgGenerator {
// Get language color
val languageColorOpt: Option[String] = languageOpt.map(GitHubLanguageColors.colors)
// Convert description to lines
val descriptionLines: List[String] = descriptionToLines(description)
val descriptionLines: List[String] = descriptionToLines(
// Render emoji
emoji.EmojiRenderer.render(description)
)

// Create description element and last y coordinate
val (descriptionElems, lastDescriptionY): (List[scala.xml.Elem], Int) = {
Expand Down
Loading

0 comments on commit b577950

Please sign in to comment.