Commit Graph

83 Commits

Author SHA1 Message Date
Steven 20e5597104 chore: fix memo container max width 2023-10-13 23:26:56 +08:00
Kada Liao 9600fbb609
fix: multiple inline latex parsing (#2214) 2023-09-13 17:58:52 +08:00
Kada Liao 9a0ada6756
feat: support LaTeX with react-katex (#2209)
feat: support latex

Co-authored-by: liaoxingyi <liaoxingyi@douban.com>
2023-09-12 23:53:46 +08:00
boojack cc400da44e
fix: remove translate hook in code block (#2080) 2023-08-05 20:01:32 +08:00
boojack d114b630d2
feat: add prettier sort import plugin (#2058) 2023-07-31 22:26:45 +08:00
boojack 56c321aeaa
revert: fix: exclude all punctuation chars except underscore in tags (#2033)
Revert "fix: exclude all punctuation chars except underscore in tags (#1974)"

This reverts commit 8c61531671.
2023-07-26 21:11:13 +08:00
Felipe Martínez 8c61531671
fix: exclude all punctuation chars except underscore in tags (#1974)
* Change tag regex

* Update tests

* Add more tag tests
2023-07-18 01:53:07 +08:00
Ajay Kumbhare b5d4b8eae8
fix: copy code button toast message (#1979)
* #1952 Fix incorrect localization key for sign-up failure message

* feat: add typeScript support to enforce valid translation keys

* feat: add typeScript support to enforce valid translation keys

* fix lint errors

* fix lint error

* chore: Disallow destructuring 't' from useTranslation

This commit adds a linting rule to disallow the destructuring of the 't' property from the result of the useTranslation function call. The no-restricted-syntax rule in the ESLint configuration has been updated to enforce this restriction. The intention is to promote alternative approaches like using the useTranslate hook for localization.

* fix: typo fixed for memoChat

* fix: copy code button toast message

Refactored the code for the "Copy Code" button to utilize i18 strings for displaying the success message. Replaced the hard-coded value with the appropriate i18 string "Code copied successfully."
2023-07-18 00:16:55 +08:00
Felipe Martínez 2a7104e564
fix: exclude commas in tags (#1957) 2023-07-15 10:00:35 +08:00
CorrectRoadH d72b4e9a98
feat: filter support plain link (#1657)
* fix: unexpected empty lines when copying-pasting

* add ref

* feat: support to filter plain link

* eslint

* fix the typo

* fix the typo

* unified the import path
2023-05-14 23:17:18 +08:00
boojack cc23f69f66
chore: update import path (#1477) 2023-04-05 23:31:15 +08:00
Zeng1998 026fb3e50e
fix: markdown support in blockquote (#1394) 2023-03-21 22:38:38 +08:00
远浅 2ba0dbf50b
refactor: use function findMatchingParser to reduce duplicate code (#1367)
* refactor: Use function findMatchingParser to reduce duplicate code

* chore: declare type Parser
2023-03-17 20:46:07 +08:00
boojack f86816fea2
feat: use react-hot-toast (#1321) 2023-03-09 08:54:14 +08:00
Baptiste Roux 93609ca731
fix: update markdown hyperlink regex (#1315)
* fix: Update markdown hyperlink regex

* chore(lint): Remove unnecessary escape character
2023-03-08 23:22:16 +08:00
远浅 54374bca05
fix: missing prop key (#1291) 2023-03-06 19:12:50 +08:00
boojack c6d43581f9
revert: Fix: Markdown hyperlinks with parenthesis take first closing parenthesis as final (#1251)
Revert "fix: Markdown hyperlinks with parenthesis take first closing parenthesis as final (#1213)"

This reverts commit 1b0629bf0f.
2023-03-04 20:54:14 +08:00
boojack dd625d8edc
chore: update links reference (#1243) 2023-03-04 15:06:01 +08:00
Jason Shawn D' Souza 1b0629bf0f
fix: Markdown hyperlinks with parenthesis take first closing parenthesis as final (#1213)
Updating regex to pick up edge case with parentheses
2023-03-01 22:43:13 +08:00
Stephen Zhou d6fe180ca1
fix: parse chrome or edge urls in plain link (#1034)
fix: parse chrome or urls in plain link
2023-02-07 20:10:13 +08:00
Stephen Zhou 42cd93cf33
fix: show copy button on hover (#1002) 2023-01-31 18:38:58 +08:00
boojack b19c3c6db3
feat: update renderer in list (#935) 2023-01-12 08:52:57 +08:00
boojack 4b860777cf
fix: tag generate in code block (#925) 2023-01-08 13:49:26 +08:00
boojack e29924c8a1
fix: codeblock renderer (#924) 2023-01-08 11:24:28 +08:00
boojack 1847756ade
chore: remove escape (#918) 2023-01-07 14:52:47 +08:00
boojack 771c56f485
chore: fix renderer (#917) 2023-01-07 14:07:17 +08:00
boojack 0f8ce3dd16
refactor: return jsx element instead of string in marked (#910)
* refactor: return jsx element instead of string in marked

* chore: update
2023-01-07 00:13:49 +08:00
Zeng1998 92a8a4ac0c
feat: support code copy (#901)
* feat: support code copy

* update
2023-01-03 23:05:00 +08:00
boojack 7670c95360
chore: fix XSS in renderer (#880) 2022-12-31 11:52:57 +08:00
boojack 64e5c343c5
chore: fix XSS in renderer (#875)
chore: fix xss in renderer
2022-12-29 23:27:56 +08:00
boojack 65cc19c12e
chore: add escape to prevent XSS (#833) 2022-12-23 19:17:33 +08:00
boojack 72daa4e1d6
feat: support heading syntax (#827) 2022-12-22 19:48:19 +08:00
boojack b6f19ca093
feat: upsert tag based content (#816)
* feat: upsert tag based content

* chore: update
2022-12-22 00:35:47 +08:00
boojack ab07c91d42
feat: update marked (#810) 2022-12-21 18:36:26 +08:00
boojack c177db69d5
chore: update tag regexp (#785) 2022-12-20 09:44:41 +08:00
M. Gschwandtner 334da5e903
fix: add a span as wrapper to fix whitespace (#747) 2022-12-15 08:45:20 +08:00
boojack 66418d4210
feat: get image only when cors error (#721) 2022-12-10 13:20:48 +08:00
boojack 56716cdad4
fix: break word (#708)
* fix: break word

* chore: update
2022-12-09 08:31:45 +08:00
boojack 1ea74dfd0d
chore: remove table syntax (#669) 2022-12-04 10:52:11 +08:00
boojack b04e001db1
fix: image url host missing (#623) 2022-11-28 19:52:03 +08:00
Zeng1998 54271c1598
chore: fix some typos (#587) 2022-11-26 06:23:29 +00:00
Zeng1998 5f3cade810
feat: highlight the searched text in memo content (#514)
* feat: highlight the searched text in memo content

* update

* update

* update

* update

Co-authored-by: boojack <stevenlgtm@gmail.com>
2022-11-25 21:59:21 +08:00
Tiefseemonster 495f1f2041
chore: fix name field in paragraph parser obj (#564) 2022-11-25 01:47:17 +00:00
boojack abcd3cfafb
feat: add `Strikethrough` syntax (#557)
feat: add `Strikethrough` rule
2022-11-24 20:05:51 +08:00
boojack 2d49e96a8a
feat: get image blob in backend (#495)
* feat: get image blob in backend

* chore: update
2022-11-19 18:43:56 +08:00
Stephen Zhou 797accbc2c
feat: parser for horizontal rule (#477)
* feat: parser for horizontal rule

* chore: revert
2022-11-15 21:56:44 +08:00
boojack 66f9bc48bb
chore: remove mark memo (#476) 2022-11-15 21:22:08 +08:00
Mahoo Huang 67195859dc
fix: abnormal link regex (#474) 2022-11-15 21:15:10 +08:00
boojack 9866702850
fix: parser regexp for special character (#439) 2022-11-10 20:38:14 +08:00
Mahoo Huang a1068b6fe3
fix: abnormal blockquote regexp (#404)
```markdown
面向具体实现编程 ==> 面向抽象接口编程
```.
面向具体实现编程 ==
> 面向抽象接口编程
2022-11-02 20:33:25 +08:00