Skip to content

Commit

Permalink
fix #54: add missed emoticons
Browse files Browse the repository at this point in the history
  • Loading branch information
denco committed Mar 8, 2024
1 parent d7db2b6 commit 090ec25
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 0 deletions.
Binary file added media/emoticons/add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/emoticons/flag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/emoticons/flag_grey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/emoticons/forbidden.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/emoticons/help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/emoticons/lightbulb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/emoticons/lightbulb_on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/emoticons/star_blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/emoticons/star_green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/emoticons/star_red.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/emoticons/star_yellow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/markupParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,19 @@ export function parseMarkup(sourceUri: vscode.Uri, sourceText: string) {
tag = tag.replace(/\(x\)/g, '<img alt="(cross)" src="' + emoticonUri('cross.png') + '">');
tag = tag.replace(/\(!\)/g, '<img alt="(warning)" src="' + emoticonUri('warning.png') + '">');

tag = tag.replace(/\(\?\)/g, '<img alt="(help)" src="' + emoticonUri('help.png') + '">');
tag = tag.replace(/\(-\)/g, '<img alt="(forbidden)" src="' + emoticonUri('forbidden.png') + '">');
tag = tag.replace(/\(\+\)/g, '<img alt="(add)" src="' + emoticonUri('add.png') + '">');
tag = tag.replace(/\(on\)/g, '<img alt="(lightbulb_on)" src="' + emoticonUri('lightbulb_on.png') + '">');
tag = tag.replace(/\(off\)/g, '<img alt="(lightbulb)" src="' + emoticonUri('lightbulb.png') + '">');
tag = tag.replace(/\(\*\)/g, '<img alt="(star_yellow)" src="' + emoticonUri('star_yellow.png') + '">');
tag = tag.replace(/\(\*r\)/g, '<img alt="(star_red)" src="' + emoticonUri('star_red.png') + '">');
tag = tag.replace(/\(\*g\)/g, '<img alt="(star_green)" src="' + emoticonUri('star_green.png') + '">');
tag = tag.replace(/\(\*b\)/g, '<img alt="(star_blue)" src="' + emoticonUri('star_blue.png') + '">');
tag = tag.replace(/\(\*y\)/g, '<img alt="(star_yellow)" src="' + emoticonUri('star_yellow.png') + '">');
tag = tag.replace(/\(flagoff\)/g, '<img alt="(flag_grey)" src="' + emoticonUri('flag_grey.png') + '">');
tag = tag.replace(/\(flagon\)/g, '<img alt="(flag)" src="' + emoticonUri('flag.png') + '">');

tag = tag.replace(/\\\\/gi, '<br>');

const re_href = /\[([^||\]]*)\|?([^[||]*)?\]/g
Expand Down

0 comments on commit 090ec25

Please sign in to comment.