Just figured out how to do that: ```{.code .numberLines} abracadabra abracadabra abracadabra abracadabra abracadabra abracadabra ``` This is not exactly what I wanted to do, but it is also nice. The new lines are inserted properly. It would be nice to do that without numbered lines also, but personally for me, the issue is resolved. Thank you for your time and excellent project. On Mon, Jun 6, 2022 at 4:49 AM Hirrolot wrote: > If I am able to just turn off syntax highlighting for some code block, > this would be also fine. However, I can't figure out how to do that. > > On Mon, Jun 6, 2022 at 4:48 AM Hirrolot wrote: > >> Unfortunately, specifying an unknown language doesn't work either. E.g.: >> >> ```{.code} >> abracadabra abracadabra >> abracadabra abracadabra >> abracadabra abracadabra >> ``` >> >> Outputs something like: >> >>
...
>> >> Without newlines. However, if I change `code` to e.g. `haskell`, the >> output would be: >> >>
>>
>> ...
>> 
>>
>> >> This includes newlines. >> >> >> On Sun, Jun 5, 2022 at 11:35 PM BPJ wrote: >> >>> Try to use `code` as a "language" (actually a class) on your code >>> blocks, or something else which is unlikely to ever become the name of a >>> highlighted language. Pandoc will make it a class on the HTML code tag but >>> will otherwise ignore it. >>> >>> The details about attributes on code blocks are at >>> >>> https://pandoc.org/MANUAL.html#extension-fenced_code_attributes >>> >>> Den sön 5 juni 2022 06:41Hirrolot skrev: >>> >>>> 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 >>>> >>>> . >>>> >>> -- >>> 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/CADAJKhCFdpRYJwsnF2TPuiemgTeKcmSU7yCXxSxwDtvP4Y5Adg%40mail.gmail.com >>> >>> . >>> >> -- 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/CA%2Bg-_moZn2u9NZyvLBgnbt9j9b7WO_QGEg%3D5ma49ktkndc8kEA%40mail.gmail.com.