A hyperscript helper for creating Slate documents with JSX-like syntax.
90
{
"context": "This criteria evaluates how well the engineer leverages slate-hyperscript's automatic string-to-text node conversion feature, including understanding of how plain strings are converted to text nodes and how adjacent strings with identical properties are automatically merged.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses jsx function",
"description": "Imports and uses the `jsx` function from slate-hyperscript as the primary mechanism for creating document structures",
"max_score": 15
},
{
"name": "String-to-text conversion",
"description": "Relies on slate-hyperscript's automatic conversion of plain string children into { text: 'string' } objects rather than manually creating text objects",
"max_score": 25
},
{
"name": "Adjacent string merging",
"description": "Demonstrates understanding that adjacent plain strings with identical properties are automatically merged into a single text node by slate-hyperscript",
"max_score": 25
},
{
"name": "Cursor token usage",
"description": "Uses slate-hyperscript's <cursor /> token for representing selection positions within text, allowing automatic calculation of offsets in merged text",
"max_score": 20
},
{
"name": "Element tag usage",
"description": "Uses the <element> tag from slate-hyperscript to create block-level container nodes with children arrays",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-slate-hyperscriptdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10