Hey folks. After some troubleshooting, I found that this is happening because of a css snippet that I am using to justify the text. If I disable that snippet, then the export to pdf works fine.
So, this is not a bug. Thanks for the re-classification.
However, can someone help me with this? What modification is required in the snippet so that the text exports as it is visible on the screen? It is weird that the note is rendered on the screen correctly but it is exported in a different style.
This is the css snippet:
/* reading mode */
.markdown-preview-view p {
text-align: justify;
text-justify: inter-word;
}
/* source view and live preview */
.markdown-source-view.mod-cm6 .cm-line {
text-align: justify;
text-justify: inter-word;
}