Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@contentful/contentful-slatejs-adapter
Advanced tools
The library provides an adapter to convert Slate's Document to Contentful Document and vice-versa.
{
"category": "document",
"content": [
{
"category": "block",
"type": "header-one",
"content": [
{
"category": "text",
"type": "text",
"value": "This is a headline!",
"marks": [
{
"object": "mark",
"type": "bold",
"data": {}
}
]
}
]
},
{
"category": "block",
"type": "paragraph",
"content": [
{
"category": "text",
"type": "text",
"value": "",
"marks": [
{
"object": "mark",
"type": "bold",
"data": {}
}
]
}
]
},
{
"category": "block",
"type": "paragraph",
"content": [
{
"category": "text",
"type": "text",
"value": "and this is a bold text",
"marks": [
{
"object": "mark",
"type": "bold",
"data": {}
}
]
},
{
"category": "text",
"type": "text",
"value": " but now i am not bold anymore. ",
"marks": []
},
{
"category": "text",
"type": "text",
"value": "However, ",
"marks": [
{
"object": "mark",
"type": "italic",
"data": {}
}
]
},
{
"category": "text",
"type": "text",
"value": " i am now ",
"marks": []
},
{
"category": "text",
"type": "text",
"value": "underlined with shit. ",
"marks": [
{
"object": "mark",
"type": "underlined",
"data": {}
}
]
}
]
}
]
}
Automatic releases are possible thanks to semantic release, which publishes the code automatically on npm and generates a changelog.
We follow angular commit format to generate a changelog.
You'll need to use npm run commit
, to create conventional commits.
FAQs
This library provides an adapter to convert Slate's document structure to Contentful's rich text document structure and vice-versa.
The npm package @contentful/contentful-slatejs-adapter receives a total of 4,193 weekly downloads. As such, @contentful/contentful-slatejs-adapter popularity was classified as popular.
We found that @contentful/contentful-slatejs-adapter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.