framework: remove @mdx-js/mdx
and replace with custom implementation #1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
task list
@html
blocksthe two biggest dependencies of the framework are
@mdx-js/mdx
marko
(separate issue, unlikely to take action)MDX has 111 total dependencies. which is insane because it is not doing anything revolutionary
for completion, marko has 71 dependencies. not off the hook but this dependency provides a lot of value currently.
there is already an extensible markdown parser in
./src/q+a/simple-markdown.ts
. this file probably needs a lot of cleanup, because it is old. it can be moved into the framework. the JSX segments can be emitted verbatim since the file can go through esbuild. this also lets us try a "markodown" version where marko syntax is used instead of JSX. there is a good chance that would be much more preferable than JSX since it is universally less verbose to write.new code is here. it'll probably move to engine since it is another way to use the SSR engine instead of a markdown parser
https://git.paperclover.net/clo/sitegen/src/branch/master/framework/lib/markdown.tsx