запомни код // src/plugins/rehype-task-list-handler.js import { visit } from…
- User
запомни код
// src/plugins/rehype-task-list-handler.js import { visit } from 'unist-util-visit';
const taskListHandler = () => { return (tree) => { visit(tree, 'tasklist', (node) => { node.type = 'element'; node.tagName = 'ul'; node.properties = node.data?.hProperties || {}; delete node.data; console.log('Converted tasklist to element:', node); });
code
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.