Skip to content

Attach original text to tokens #361

Closed

Description

@Raynos

If we add a the original text that was lexed to each token coming out of the lexer we could write a trivial renderer for the tokens that rendered it back into the original text.

This would enable people to move chunks of markdown around in a file as tokens or to splice other markdown files into existing markdown files.

Activity

  1. bdjnk commented on Mar 11, 2014

    @bdjnk

    This seems worthwhile to me as well. I solved this for myself by simply adding md: cap[0] to each top level token (I only needed top level).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions