Skip to content

adding support for task lists in GitHubFlavor #461

Open
@jirijakes

Description

@jirijakes

When Markdown input contains task list:

Todo:

 - [x] Task 1
 - [ ] Task 2

rendering into HTML produces an error:

import laika.api.Transformer
import laika.format.{Markdown, HTML}
import laika.markdown.github.GitHubFlavor

Transformer.from(Markdown).to(HTML).using(GitHubFlavor).build.transform(
"""Todo:

 - [x] Task 1
 - [ ] Task 2"""
)
Either[laika.parse.markup.DocumentParser.TransformationError, String] =
  Left(laika.parse.markup.DocumentParser$ParserError:
    Error parsing document '/': One or more error nodes in result:

  [3]: unresolved link id reference: x

   - [x] Task 1
     ^

  [4]: unresolved link id reference:

   - [ ] Task 2
     ^)

Tested with version 0.19.3.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions