Skip to content

Commit

Permalink
Merge branch 'main' into @Skalakid/web-parser-refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Skalakid committed Jun 25, 2024
2 parents 7d5c4d2 + d050659 commit 0af6f58
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 27 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@expensify/react-native-live-markdown",
"version": "0.1.89",
"version": "0.1.91",
"description": "Drop-in replacement for React Native's TextInput component with Markdown formatting.",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
2 changes: 1 addition & 1 deletion parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"typescript": "^5.3.3"
},
"dependencies": {
"expensify-common": "2.0.19"
"expensify-common": "2.0.23"
}
}
39 changes: 20 additions & 19 deletions parser/react-native-live-markdown-parser.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/parserUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function addStyling(targetElement: HTMLElement, type: MarkdownType, markdownStyl
node.style.textDecoration = 'line-through';
break;
case 'emoji':
Object.assign(node.style, markdownStyle.emoji);
Object.assign(node.style, {...markdownStyle.emoji, verticalAlign: 'middle'});
break;
case 'mention-here':
Object.assign(node.style, markdownStyle.mentionHere);
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2647,7 +2647,7 @@ __metadata:
"@types/underscore": ^1.11.15
esbuild: 0.19.4
esbuild-plugin-tsc: ^0.4.0
expensify-common: 2.0.19
expensify-common: 2.0.23
jest: ^29.7.0
typescript: ^5.3.3
languageName: unknown
Expand Down Expand Up @@ -9967,9 +9967,9 @@ __metadata:
languageName: node
linkType: hard

"expensify-common@npm:2.0.19":
version: 2.0.19
resolution: "expensify-common@npm:2.0.19"
"expensify-common@npm:2.0.23":
version: 2.0.23
resolution: "expensify-common@npm:2.0.23"
dependencies:
awesome-phonenumber: ^5.4.0
classnames: 2.5.0
Expand All @@ -9984,7 +9984,7 @@ __metadata:
semver: ^7.6.0
simply-deferred: "git+https://github.com/Expensify/simply-deferred.git#77a08a95754660c7bd6e0b6979fdf84e8e831bf5"
ua-parser-js: ^1.0.37
checksum: 4658c46ad5c8965347c862d65cef827b24b85ba314966db04209fe74a6d4c37f84e42211e80ac4ee8cb625f4a5fed278e2da64114ea652f694d85f4fce75fd1b
checksum: 5be467bc68cbd93bccde8803c25184d2d4a76fa000fb29e919bcb64661866601e0ee81d1731220422cfe705e6688b151a9da968da7bdd369a1d46ae48b33702f
languageName: node
linkType: hard

Expand Down

0 comments on commit 0af6f58

Please sign in to comment.