Skip to content
New issue

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

Line break display of long LateX text #487

Open
VitaAin opened this issue Oct 29, 2024 · 0 comments
Open

Line break display of long LateX text #487

VitaAin opened this issue Oct 29, 2024 · 0 comments

Comments

@VitaAin
Copy link

VitaAin commented Oct 29, 2024

  • Markwon version: {REQUIRED}
    4.6.2
  1. Please specify expected/actual behavior
    I have a piece of text content. I hope it can adapt to the width of my phone screen and display line breaks in appropriate positions. However, when using Markwon to display this text, I found that it will display all the content of LateX text on one line without automatic line breaks, and the text will become very small. Just like this:
image

May I ask what I should do to solve it?

  1. Please specify conditions/steps to reproduce (layout, code, markdown used, etc)
    I use Markwon in this way:
    Markwon markwon = Markwon.builder(context)
      .usePlugin(MarkwonInlineParserPlugin.create())
      .usePlugin(JLatexMathPlugin.create(textView.getTextSize(), builder -> {
        builder.inlinesEnabled(true);
      }))
      .usePlugin(SoftBreakAddsNewLinePlugin.create())
      .build();
    markwon.setMarkdown(textView, md);

And the long text is as follows:

 $$ Fe/F O _ { 2 } N \rightarrow { + } \square { C _ { 7 } H _ { 1 0 } N _ { 2 } } \frac { 1 ) N a N O _ { 2 } / H C l } { 2 H _ { 2 } O / \Delta H O } ( C H _ { 3 } O ) _ { 2 } S O _ { 2 } NB NaOH C _ { 9 } H _ { 1 2 } O _ { 2 } C _ { 9 } H _ { 1 1 } B r O _ { 2 } P ( O C _ { 2 } H _ { 5 } ) _ { 3 } HO OH O C H _ { 3 } C _ { 8 } H _ { 8 } H _ { 3 } C O O _ { p }, O C _ { 2 } H _ { 5 } B B r _ { 3 } NaH/THF O C _ { 2 } H _ { 5 } HO 1 ) H H _ { 3 } C O F $$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant