public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Pandoc doesn't insert newlines in <code>
@ 2022-06-05  4:40 Hirrolot
       [not found] ` <8efdb324-3ae6-4e63-b653-527984b5a133n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Hirrolot @ 2022-06-05  4:40 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 981 bytes --]

I use Pandoc to convert MD files to HTML. Inside MD, I use this:

```
abracadabra abracadabra
abracadabra abracadabra
abracadabra abracadabra
```

(In reality, the lines are much longer.)

Then I style my HTML using CSS and want to add horizontal scrolling. 
Specifying a language for the code block works fine because Pandoc 
automatically inserts newlines I guess. But if the code block is without a 
language (such as the one above), my final code block in HTML just wraps as 
ordinary text and I can't fix it.

I tried --wrap=preserve but with no effect. Any ideas?

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8efdb324-3ae6-4e63-b653-527984b5a133n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1406 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-06-06 17:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-05  4:40 Pandoc doesn't insert newlines in <code> Hirrolot
     [not found] ` <8efdb324-3ae6-4e63-b653-527984b5a133n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-05 17:35   ` BPJ
     [not found]     ` <CADAJKhCFdpRYJwsnF2TPuiemgTeKcmSU7yCXxSxwDtvP4Y5Adg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-06-05 22:48       ` Hirrolot
     [not found]         ` <CA+g-_mopnyL1iDJnSp0br-0-CP1nfb0Co3KhNawL=4Mn+HG7Qg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-06-05 22:49           ` Hirrolot
     [not found]             ` <CA+g-_mrp_5phaWVXavU6kxiF9VMyb23SxNsxJanSFmvNQhgqXA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-06-05 22:54               ` Hirrolot
2022-06-06 17:01           ` John MacFarlane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).