mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 07:04:45 -04:00
Improvement/update better task list (#878)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
6dc6adf270
commit
91fcc4fe40
4 changed files with 7 additions and 26 deletions
|
@ -11,7 +11,6 @@ export const tasksLists: MarkdownIt.PluginSimple = (markdownIt) => {
|
|||
markdownItTaskLists(markdownIt, {
|
||||
enabled: true,
|
||||
label: true,
|
||||
labelAfter: true,
|
||||
lineNumber: true
|
||||
})
|
||||
}
|
||||
|
|
|
@ -34,6 +34,7 @@ export class TaskListReplacer extends ComponentReplacer {
|
|||
type="checkbox"
|
||||
checked={node.attribs.checked !== undefined}
|
||||
onChange={this.handleCheckboxChange}
|
||||
id={node.attribs.id}
|
||||
data-line={node.attribs['data-line']}
|
||||
/>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue