Skip to content

Instantly share code, notes, and snippets.

@AndyG
Created February 28, 2018 23:45
Show Gist options
  • Save AndyG/aae13d724ca2f3d4c99b0d56f7160a3d to your computer and use it in GitHub Desktop.
Save AndyG/aae13d724ca2f3d4c99b0d56f7160a3d to your computer and use it in GitHub Desktop.
SimpleAST TextNode
class TextNode(val content: String) : SpannableRenderableNode() {
override fun render(builder: SpannableStringBuilder, context: Context?) {
builder.append(content)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment