Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump expensify-common to 2.0.10 #360

Merged
merged 18 commits into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions parser/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// @ts-expect-error - to review how it's implemented in ExpensiMark
// eslint-disable-next-line import/no-unresolved
import {ExpensiMark} from 'expensify-common/lib/ExpensiMark';
import {ExpensiMark} from 'expensify-common';
import _ from 'underscore';
tomekzaw marked this conversation as resolved.
Show resolved Hide resolved

type MarkdownType = 'bold' | 'italic' | 'strikethrough' | 'emoji' | 'mention-here' | 'mention-user' | 'mention-report' | 'link' | 'code' | 'pre' | 'blockquote' | 'h1' | 'syntax';
Expand All @@ -14,7 +13,7 @@ type Token = ['TEXT' | 'HTML', string];
type StackItem = {tag: string; children: Array<StackItem | string>};

function parseMarkdownToHTML(markdown: string): string {
const parser = ExpensiMark;
const parser = new ExpensiMark();
const html = parser.replace(markdown, {
tomekzaw marked this conversation as resolved.
Show resolved Hide resolved
shouldKeepRawInput: true,
});
Expand Down
2 changes: 1 addition & 1 deletion parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"typescript": "^5.3.3"
},
"dependencies": {
"expensify-common": "Expensify/expensify-common#a018512b1e0fce4d4b5a61c00ca826b8887007ad",
"expensify-common": "2.0.4",
tomekzaw marked this conversation as resolved.
Show resolved Hide resolved
"patch-package": "^8.0.0",
"underscore": "^1.13.6"
}
Expand Down
178 changes: 0 additions & 178 deletions parser/patches/expensify-common+1.0.0.patch

This file was deleted.

Loading
Loading