Where is the significant gap in pandoc / markdown usually adjusted?

I use pandoc to convert some markup documents to .html through a custom css file.

Everything works except one. From what I understand, the text in backticks ``should be significant for white space, as it is usually the code inside. In my case, this is not so - in other words, it just looks like ordinary other text.

I am wondering where this is regulated in pandoc or in a custom css file - which css attribute governs whether there should be a significant space?

+5
source share
2 answers

Pandoc HTML <code>. ( Markdown.pl), . . HTML, , <code>. , , , . , CSS, <code>.

+4

css, , white-space.

, - css:

pre {
  white-space: pre-line;
}

, white-space: pre-wrap; code:

code {
  font-family: "Menlo", "Courier New", "Courier", monospace;
  font-size: 0.85rem;
  border: 0.0625rem solid rgba(255,255,255,0.7);
  background-color: rgba(255,255,255,0.5);
  border-radius: 2px; color: #2DAB5F; /* #2DAB5F */
  text-shadow: none;
  white-space: pre-wrap;
}

.

, , :

pre. . . HTML

pre-wrap. . ,

Css, , , . pre-wrap, , pre, .

0

All Articles