-
Notifications
You must be signed in to change notification settings - Fork 357
[Simple Markdown] Remove deprecated APIs and features (html output) #2690
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
base: main
Are you sure you want to change the base?
Conversation
…es (html output) from simple-markdown
Size Change: -726 B (-0.15%) Total Size: 480 kB
ℹ️ View Unchanged
|
npm Snapshot: PublishedGood news!! We've packaged up the latest commit from this PR (dd13ccf) and published it to npm. You Example: pnpm add @khanacademy/perseus@PR2690 If you are working in Khan Academy's frontend, you can run the below command. ./tools/bump_perseus_version.ts -t PR2690 If you are working in Khan Academy's webapp, you can run the below command. ./dev/tools/bump_perseus_version.js -t PR2690 |
…ut support (and other deprecated APIs)
) { | ||
var parsed = blockParse(tableSrc + "\n"); | ||
assert.strictEqual(parsed[0].type, "table"); | ||
var actualAligns = parsed[0].align; | ||
validateParse(actualAligns, expectedAligns); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
validateParse()
is really a glorified wrapper around an equality assertion, we were fighting the types here so I've just reverted to use... expect()
here.
Summary:
This PR removes long-deprecated features and APIs from the
@khanacademy/simple-markdown
project. We haven't used HTML output for a long, long time (everything is rendered to React) and so that is being removed.There are also a few APIs that are marked as deprecated that I've verified as unused, which we can delete.
This work is being done because I need to make another change and thought it would be handy to clean up the library a bit before doing any new work.
Issue: LEMS-3096
Test plan:
pnpm tsc
pnpm test
Install the snapshot version of the package in the frontend repo and type check everything there.