Skip to content

Commit

Permalink
Update notion_researcher extension (#8128)
Browse files Browse the repository at this point in the history
* Add notion_researcher extension

- Update README.md
- Update README.md
- Merge pull request #8 from razgaon/production-preparation
- Fixed bug with semantic scholar and added toast.
- Merge pull request #7 from razgaon/production-preparation
- Improved Semantic Scholar
- Merge pull request #5 from razgaon/razgaon-readme-patch-1
- Merge pull request #6 from razgaon/production-preparation
- Added automatic database creation.
- Update README.md
- Added image
- Added changelog and categories
- Updated icons
- Fixed lint issues
- Merge pull request #4 from razgaon/feature/create-database
- Improved the UI and experience
- Added clear indication when adding papers
- Merge pull request #3 from razgaon/feature/no-duplicates
- Checks if article already exists.
- Merge pull request #2 from razgaon/feature/speed-enhancment
- Changed llm call to be concurrent with other calls.
- Update README.md
- Merge pull request #1 from razgaon/feature/ml-explainability
- Added ml explaining
- Added support for multiple papers as input

* Fixed lint issue

* Fixed comments

* Fixed additional comments

* Fixed bug in parsing math equations.

* Removed unnecessary backslash

* Changelog

---------

Co-authored-by: Milena Araujo <milena@raycast.com>
  • Loading branch information
razgaon and mil3na committed Aug 31, 2023
1 parent b482dc9 commit 4d35eac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions extensions/notion_researcher/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# List test Changelog

## [Fix Regex] - 2023-08-31

Fixed the Regex detection to correctly identify mathematical equations and parse them accordingly in Notion.

## [Initial Version] - 2023-08-22

This version supports adding multiple papers from Arxiv to your Notion Database.
2 changes: 1 addition & 1 deletion extensions/notion_researcher/src/notion/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
type SplitResult = { type: "text"; text: { content: string } } | { type: "equation"; equation: { expression: string } };

export function splitTextAndEquations(inputString: string): SplitResult[] {
return inputString.split(/($[^$]*$)/g).reduce((acc: SplitResult[], value: string, index: number) => {
return inputString.split(/(\$[^$]*\$)/g).reduce((acc: SplitResult[], value: string, index: number) => {
if (value !== "") {
if (index % 2 === 0) {
acc.push({ type: "text", text: { content: value } });
Expand Down

0 comments on commit 4d35eac

Please sign in to comment.