Skip to content

Commit

Permalink
Merge pull request #9 from nwtgck/feature/svg-emoji-support
Browse files Browse the repository at this point in the history
Support emoji in description for SVG
  • Loading branch information
nwtgck authored Jun 15, 2019
2 parents 0d5eb13 + 85ad7aa commit 0e00a77
Show file tree
Hide file tree
Showing 3 changed files with 49 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 0e00a77

Please sign in to comment.