bjsi / bjsi/incremental-everything

build a SuperMemo-like Web Importer

Open
#264 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
75
Forks
11
Avg merge
1m
Merged PRs (30d)
11

Description

>What would RichTextNamespace.parseAndInsertHtml be useful for? Would it be able to parse an html site (e.g. https://en.wikipedia.org/wiki/Strait_of_Hormuz) and insert its content in a RemNote-friendly way? I ask this because I am searching for a SuperMemo-like web importer (https://help.supermemo.org/wiki/Web_import), that parses and import the content locally.

Yes, `RichTextNamespace.parseAndInsertHtml` is exactly the right tool for the final step of building a SuperMemo-style web importer, but you will need to do some intermediate work to get the clean result you want.

According to the SDK, `parseAndInsertHtml` takes an HTML string and a target `RemId` (or `PluginRem`), parses that HTML, and inserts it as a tree of Rem. Under the hood, this function uses RemNote's native paste-parsing logic. It understands semantic HTML tags (like `

`, `

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the SDK entry points mentioned in the issue: plugin.richText.parseAndInsertHtml and plugin.rem.createTreeWithMarkdown. Then investigate fetching HTML, Mozilla Readability.js, and Turndown.js; the work is done when a target page can be cleaned and imported locally into a RemNote-friendly hierarchy without surrounding site boilerplate.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.