inokawa / remark-docx

remark plugin to compile markdown to docx (Microsoft Word, Office Open XML).
https://inokawa.github.io/remark-docx/
MIT License
42 stars 15 forks source link

No Newlines are generated in final .docx file. #56

Open nickpreston24 opened 3 months ago

nickpreston24 commented 3 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Run this code:

...
all_text = `# Hello, World!  Uh oh, no tabs or newlines!          foo bar\n baz \n\n\n 

    3 lines later...`;

    // convert
    const doc = await processor.process(all_text);
    const buffer = await doc.result;

    //save
    fs.writeFileSync(dest, buffer);
...

Expected behavior I expected at minimum that newlines would be added to the docx.

Instead, no newlines were represented in the final .docx.

I red the docs, but the auto-generated docs were not helpful.

Is there some configs I'm missing? It's not in the README.md.

Thanks,

Nick

Additional context image