We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello @agnostic-apollo ,
you do not need to deal with inline parsing, a simple visitor for Code would do -
Code
Markwon/markwon-core/src/main/java/io/noties/markwon/core/CorePlugin.java
Line 270 in 6f8b8e7
val markwon = Markwon.builder(context) .usePlugin(object : AbstractMarkwonPlugin() { override fun configureVisitor(builder: MarkwonVisitor.Builder) { builder.on(Code::class.java) { visitor, node -> val length = visitor.length() visitor.builder().append(node.literal) visitor.setSpansForNodeOptional(node, length) } } }) .build()
Originally posted by @noties in #169 (comment)
The text was updated successfully, but these errors were encountered:
Now i use it
builder.on(FencedCodeBlock.class, new MarkwonVisitor.NodeVisitor<FencedCodeBlock>() { @Override public void visit(@NonNull MarkwonVisitor visitor, @NonNull FencedCodeBlock fencedCodeBlock) { visitCodeBlock(visitor, fencedCodeBlock.getInfo(), fencedCodeBlock.getLiteral(), fencedCodeBlock); } });
try to delete .append('\u00a0') in fun named visitCodeBlock it like useful to me. but i want to control margin by x dp , not by 1 '\u00a0'
.append('\u00a0')
visitCodeBlock
Sorry, something went wrong.
No branches or pull requests
you do not need to deal with inline parsing, a simple visitor for
Code
would do -Markwon/markwon-core/src/main/java/io/noties/markwon/core/CorePlugin.java
Line 270 in 6f8b8e7
Originally posted by @noties in #169 (comment)
The text was updated successfully, but these errors were encountered: