public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Markdown italics and quotation marks
@ 2023-04-04 23:22 Some Author Guy
       [not found] ` <d0cd8bd4-e274-4a91-a34d-5d72cbc4b984n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Some Author Guy @ 2023-04-04 23:22 UTC (permalink / raw)
  To: pandoc-discuss


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

I'm writing a book with ships in it. It's not uncommon for a quote to begin 
with the name of a ship, which I will attempt to italicize, but then to 
continue with normal speech, which ought not to be italicized. Consider the 
following paragraph:

*"Shipname* is in port for the next week."

This always fails. I get a pair of asterisks in the output and no italics. 
I don't have this problem without the unbalanced quotation mark, but I 
don't know why that is. I can't imagine why the quote would have any 
significance.

-- 
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/d0cd8bd4-e274-4a91-a34d-5d72cbc4b984n%40googlegroups.com.

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

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

* Re: Markdown italics and quotation marks
       [not found] ` <d0cd8bd4-e274-4a91-a34d-5d72cbc4b984n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2023-04-05  0:01   ` John MacFarlane
  2023-04-05  2:46   ` Daniel Staal
  1 sibling, 0 replies; 3+ messages in thread
From: John MacFarlane @ 2023-04-05  0:01 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 1759 bytes --]

Do it this way:

“*Shipname* is in port for the next week.”


> On Apr 4, 2023, at 4:22 PM, Some Author Guy <archer884-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> 
> I'm writing a book with ships in it. It's not uncommon for a quote to begin with the name of a ship, which I will attempt to italicize, but then to continue with normal speech, which ought not to be italicized. Consider the following paragraph:
> 
> *"Shipname* is in port for the next week."
> 
> This always fails. I get a pair of asterisks in the output and no italics. I don't have this problem without the unbalanced quotation mark, but I don't know why that is. I can't imagine why the quote would have any significance.
> 
> -- 
> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/d0cd8bd4-e274-4a91-a34d-5d72cbc4b984n%40googlegroups.com <https://groups.google.com/d/msgid/pandoc-discuss/d0cd8bd4-e274-4a91-a34d-5d72cbc4b984n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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/2DE97F2C-9B6F-48BE-9EF3-271A71A0E383%40gmail.com.

[-- Attachment #2: Type: text/html, Size: 2849 bytes --]

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

* Re: Markdown italics and quotation marks
       [not found] ` <d0cd8bd4-e274-4a91-a34d-5d72cbc4b984n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2023-04-05  0:01   ` John MacFarlane
@ 2023-04-05  2:46   ` Daniel Staal
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Staal @ 2023-04-05  2:46 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

On 4/4/23 7:22 PM, Some Author Guy wrote:
> I'm writing a book with ships in it. It's not uncommon for a quote to 
> begin with the name of a ship, which I will attempt to italicize, but 
> then to continue with normal speech, which ought not to be italicized. 
> Consider the following paragraph:
> 
> *"Shipname* is in port for the next week."
> 
> This always fails. I get a pair of asterisks in the output and no 
> italics. I don't have this problem without the unbalanced quotation 
> mark, but I don't know why that is. I can't imagine why the quote would 
> have any significance.

This one it's actually easier to see the issue in HTML.  Here's what 
you're writing:

<em><quote>Shipname</em> is in port for the next week.</quote>

You can see in that the tags are improperly nested.  Now, I can see an 
argument that Markdown shouldn't need to follow nesting conventions like 
HTML does, but the point stands that you have two overlapping tag 
sequences.  (And in this case at least, I think it's also good English 
grammar - you're trying to italicize the name of the ship, not the start 
of the quote.)

As John has already said, correcting the nesting will solve the issue:

<quote><em>Shipname</em> is in port for the next week.</quote>

Or in Markdown:

"*Shipname* is in port for the next week."

Daniel T. Staal

-- 
---------------------------------------------------------------
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------


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

end of thread, other threads:[~2023-04-05  2:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-04 23:22 Markdown italics and quotation marks Some Author Guy
     [not found] ` <d0cd8bd4-e274-4a91-a34d-5d72cbc4b984n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-04-05  0:01   ` John MacFarlane
2023-04-05  2:46   ` Daniel Staal

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