public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Long inline code blocks forcing new lines in rendered html with pandoc markdown
@ 2022-02-11  9:42 A A
       [not found] ` <55ec4b54-6494-4d86-a68a-0f0e2ef598b4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: A A @ 2022-02-11  9:42 UTC (permalink / raw)
  To: pandoc-discuss


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

Suppose I have very long inline code in my markdown document:

`javac -d classes catching_handling\GenerateIndexOutOfBoundsException.java`

To keep my markdown clean, I would like for my lines to not go over 69 
characters in Vim. The command above has more characters than that.

If I were dealing with regular text, simply starting a new line in the 
markdown will not force a newline in the rendered html document:

javac -d classes
catching_handling\GenerateIndexOutOfBoundsException.java


However if I do the following in Vim:

`javac -d classes 
catching_handling\GenerateIndexOutOfBoundsException.java`


The inline code in the rendered html does have a line break, which I don't 
want.

How do I keep my markdown clean and still use long inline code like the 
example above in markdown?

-- 
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/55ec4b54-6494-4d86-a68a-0f0e2ef598b4n%40googlegroups.com.

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

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

* Re: Long inline code blocks forcing new lines in rendered html with pandoc markdown
       [not found] ` <55ec4b54-6494-4d86-a68a-0f0e2ef598b4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-02-11 10:10   ` A A
  0 siblings, 0 replies; 2+ messages in thread
From: A A @ 2022-02-11 10:10 UTC (permalink / raw)
  To: pandoc-discuss


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

Never mind. It looks like `pandoc` *does* ignore the linebreaks between the 
backtick characters. The `max-width` property in the CSS for the `body` 
element was very narrow in the result html, which gave me the impression 
that it was breaking up my inline code. Deactivating the `max-width` in my 
resulting html styling showed me that the verbatim line was in fact intact.

On Friday, February 11, 2022 at 10:42:07 AM UTC+1 A A wrote:

> Suppose I have very long inline code in my markdown document:
>
> `javac -d classes catching_handling\GenerateIndexOutOfBoundsException.java`
>
> To keep my markdown clean, I would like for my lines to not go over 69 
> characters in Vim. The command above has more characters than that.
>
> If I were dealing with regular text, simply starting a new line in the 
> markdown will not force a newline in the rendered html document:
>
> javac -d classes
> catching_handling\GenerateIndexOutOfBoundsException.java
>
>
> However if I do the following in Vim:
>
> `javac -d classes 
> catching_handling\GenerateIndexOutOfBoundsException.java`
>
>
> The inline code in the rendered html does have a line break, which I don't 
> want.
>
> How do I keep my markdown clean and still use long inline code like the 
> example above in markdown?
>

-- 
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/066754e7-85c0-4571-a088-082f9cb8f2d4n%40googlegroups.com.

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

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

end of thread, other threads:[~2022-02-11 10:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-11  9:42 Long inline code blocks forcing new lines in rendered html with pandoc markdown A A
     [not found] ` <55ec4b54-6494-4d86-a68a-0f0e2ef598b4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-02-11 10:10   ` A A

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).