chore: update dependencies and improve markmap integration by Yukaii · Pull Request #1934 · hackmdio/codimd

@Yukaii linked an issue

Jul 15, 2025

that may be closed by this pull request

@Yukaii

- Updated markmap dependencies to versions 0.18.9 for markmap-common and 0.18.12 for markmap-lib and markmap-view.
- Refactored import statements in extra.js to use the updated markmap packages.
- Added a new helper function to sanitize markmap nodes against XSS vulnerabilities.

This update enhances the security and functionality of the markmap integration in the project.

Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
- Removed babel-polyfill from package.json and webpack.common.js.
- Added core-js and regenerator-runtime as dependencies.
- Updated babel-loader to version 8.x in devDependencies.
- Ensured compatibility with modern JavaScript features by using core-js and regenerator-runtime.

Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
…map and yaml support

Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
… and yaml support

Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>

@Yukaii

Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>

@Yukaii Yukaii deleted the bugfix/markmap-xss branch

September 16, 2025 02:51