Improvement/update better task list (#878)

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
Tilman Vatteroth 2020-12-24 10:27:22 +01:00 committed by GitHub
parent 6dc6adf270
commit 91fcc4fe40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 26 deletions

View file

@ -11,7 +11,6 @@ export const tasksLists: MarkdownIt.PluginSimple = (markdownIt) => {
markdownItTaskLists(markdownIt, {
enabled: true,
label: true,
labelAfter: true,
lineNumber: true
})
}

View file

@ -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']}
/>
)