Inserting Vertical Space in Pandoc Markdown - pandoc

Is it possible to insert a extra vertical space using Pandoc flavored Markdown? Something that would show up as a blank line in a Word document or a <br> in HTML or \vspace in LaTeX. Or anything equivalent?
My problem is that I don't want a title for my reference list, but this puts my references too close to the preceding paragraph in both Word and in LaTeX.

One way to do it is to insert a paragraph containing just a nonbreaking space.
You can use either of these forms in pandoc:
\_ (where "_" signifies a space)

For pdf, do the following (replace the s with space): \s\s

Related

How to add a blank caption for a figure in AsciiDoc

I have an AsciiDoc page which has a number of images. I am converting this into html via antora.
On my AsciiDoc page, some of the images have a caption and some do not.
For the images with a caption, the first one is named "Figure 1. Some interesting caption", then the second one is named "Figure 2. Some fascinating caption" and so on. In fact, the "Figure 1", "Figure 2" text is added automatically by Antora. In AsciiDoc itself, the markup is as follows:
.Some interesting caption;
image::images/image1.png
.Some fascinating caption;
image::images/image2.png
However, now I have a third image which has no caption to display. I would like this image to simply read "Figure 3". However, I do not know how to do this. The only thing I could come up with is to put some character after the "." symbol just above it (I chose a semi-colon), as follows:
.;
image::images/image3.png
This produces "Figure 3;" once converted into html.
It's better than nothing, but I would like to be able to use, for example, a whitespace character, instead of the semi-colon, so that I could simply produce text that reads "Figure 3 " (with an invisible whitespace character that nobody can see). Unfortunately, if I try to do that, the whitespace is ignored and I just see the '.' character in the generated html.
You can use an attribute for the non-breaking space: {nbsp}
For example:
.Some interesting caption;
image::images/image1.png[]
.Some fascinating caption;
image::images/image2.png[]
.{nbsp}
image::images/image3.png[]
Note that I added square brackets to each image macro invocation, because those lines are just text with them. And, there doesn't need to be a blank line between the caption and its associated image.

asciidoc empty table rows

I like to have a table in asciidoc, where there is an empty row in it.
The problem is, letting the row empty makes it very small automatically.
[cols="5,3,3"]
|===
|||
|===
I tried to fill the cells with spaces, + `s , line feeds, tabs. But there is no character I know, where the cell is empty on the paper and has the normal height.
What I mean is a css-like min-height, or a special character like in html.
So how to force an empty table row to have the normal line height?
Your problem seems difficult. I hope you have good reasons to add an empty row.
Maybe a small hack might help you for the moment :-)
[cols="5,3,3"]
|===
a|image:sunset.jpg[""]||
|===
I just put an image which does not exists in the first column. Maybe a one pixel image might work as well. The a in front of |makes the asciidoctor interpreter to read it as asciidoctor.
Found the solution by myself:
[cols="5a,3,3"]
|===
|{nbsp} +
{nbsp} +||
|===
The ain the column definition marks this column as asciidoc-content, so that asciidoc commands will work. The {nbsp} + is the magic keyword for an empty space, which is not like the normal space. The normal space will be ignored, the {nbsp} is not ignored.
Hope that helps for other cases too.
Found it here: https://github.com/asciidoctor/asciidoctor/wiki/How-to-insert-sequential-blank-lines

Spacing issue between letters while converting Word to PDF on Windows

I am having a word document(docx) of urdu text in Jameel Noori Nastaleeq Font. And in word its showing 10 pages file but after exporting into PDF its showing 11 pages pdf file becuase every letter contains extra space.
Can anyone please provide information ?
Edited:
Please download the file from
File
It has to do with the XML formatting of Word. When any text is pasted into Word (while the font is Jameel Noori Nastaleeq) Word places extra formatting in between the words. That formatting shows fine in Word however in when the file is converted into PDF the extra space becomes visible. When the text is merely typed in Word, the formatting is applied to entire paragraphs rather than words. That is why a typed document doesn't contain the extra spaces.

Spring Boot + Thymeleaf: How to keep line breaks from localization strings

I have localization strings with line breaks:
label.example=Text\nwith\nline\nbreaks
And i set the text using thymeleaf:
th:text="#{label.example}"
But the text is printed like:
Text with line breaks
But i want the text to appear like
Text
with
line
breaks
Why are my \n all deleted and not rendered into line breaks? How can i keep my line breaks? It is really important.
Because HTML considers a sequence of white space characters, including line breaks, as a single white space. Unless you tell it to preserve line breaks using CSS.
See the white-space property

Convert markdown backticks to asciidoc

I'm switching over from markdown to asciidoc and have a question. In my markdown file, I use backticks to indicate code font (foo.bar()). When this is converted to html, the text gets placed inside code blocks (foo.bar()).
How should I format a text fragment in asciidoc if I want it to appear within code blocks when the document is converted to html?
Late and short answer:
You can use backticks just like in Markdown.
From the AsciiDoc User manual:
Monospaced text
Word phrases +enclosed in plus characters+ are rendered in a monospaced font. Word phrases `enclosed in backtick characters` (grave accents) are also rendered in a monospaced font but in this case the enclosed text is rendered literally and is not subject to further expansion
As you can see here, you can use `foo.bar()` the same way in asciidoc.
Here's an example of that:
* Utilizar as funções `fgetc` ou `getc` para ler carácteres (...);

Resources