Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
@plone/blocks-conversion-tool
Advanced tools
[![NPM](https://img.shields.io/npm/v/@plone/blocks-conversion-tool.svg)](https://www.npmjs.com/package/@plone/blocks-conversion-tool) [![Code analysis checks](https://github.com/plone/blocks-conversion-tool/actions/workflows/code.yml/badge.svg)](https://g
This package implements a server with a simple API to convert HTML (as used in Plone Classic) to Blocks (as used on Volto).
git clone https://github.com/plone/blocks-conversion-tool.git
cd blocks-conversion-tool
yarn install
yarn start
To use a different port than 5000 if that one is already opened by another process:
PORT=6000 yarn start
docker run -it -p 5000:5000 plone/blocks-conversion-tool:latest
Slate is going to be the default text block for Plone 6, to convert HTML to an array of blocks call the service passing the HTML as shown below:
curl -i -X POST http://localhost:5000/html -H "Accept: application/json" -H "Content-Type: application/json" --data-raw '{"html": "<p>Hello world!</p>"}'
Draft-JS is the legacy default text block used in Volto.
curl -i -X POST http://localhost:5000/html -H "Accept: application/json" -H "Content-Type: application/json" --data-raw '{"html": "<p>Hello world!</p>", "converter": "draftjs"}'
This package uses @release-it/conventional-changelog to generate its CHANGELOG , so please always prefix your commit messages with:
We use release-it to manage version releases of @plone/blocks-conversion-tool. To cut a new release run make release-package
.
It is strongly recommended you first do a dry-run with make release-package-dry-run
to make sure everything is in order for a new release.
After releasing the package to NPM, also create a new image tag on Docker Hub: make release-image
FAQs
[![NPM](https://img.shields.io/npm/v/@plone/blocks-conversion-tool.svg)](https://www.npmjs.com/package/@plone/blocks-conversion-tool) [![Code analysis checks](https://github.com/plone/blocks-conversion-tool/actions/workflows/code.yml/badge.svg)](https://g
The npm package @plone/blocks-conversion-tool receives a total of 11 weekly downloads. As such, @plone/blocks-conversion-tool popularity was classified as not popular.
We found that @plone/blocks-conversion-tool demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 12 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.