* unwanted image captions @ 2017-09-23 16:20 Clint Adams [not found] ` <20170923162044.aoj7ciyfuidd7d4u-Ef207QMqB4M@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Clint Adams @ 2017-09-23 16:20 UTC (permalink / raw) To: pandoc-discuss Text::Markdown will render ![some text](https://example.org/img/onetwothree.jpg) to <p><img src="https://example.org/img/onetwothree.jpg" alt="some text" /></p> This is what I want and expect. However, when transforming markdown to HTML with pandoc, the following is produced: <div class="figure"> <img src="https://example.org/img/onetwothree.jpg" alt="some text" /> <p class="caption">some text</p> </div> Is there a way to render the alt text but not a caption? A quick look at the source code suggests that there is not. ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <20170923162044.aoj7ciyfuidd7d4u-Ef207QMqB4M@public.gmane.org>]
* Re: unwanted image captions [not found] ` <20170923162044.aoj7ciyfuidd7d4u-Ef207QMqB4M@public.gmane.org> @ 2017-09-23 16:38 ` Albert Krewinkel [not found] ` <87k20pcqur.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Albert Krewinkel @ 2017-09-23 16:38 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Clint Adams <clint-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org> writes: > Text::Markdown will render > > ![some text](https://example.org/img/onetwothree.jpg) > > to > > <p><img src="https://example.org/img/onetwothree.jpg" alt="some text" /></p> > > This is what I want and expect. > > However, when transforming markdown to HTML with pandoc, the following > is produced: > > <div class="figure"> > <img src="https://example.org/img/onetwothree.jpg" alt="some text" /> > <p class="caption">some text</p> > </div> > > Is there a way to render the alt text but not a caption? A quick look > at the source code suggests that there is not. Pandoc has an 'implicit_figures' extension which will treat paragraphs containing just an image as figures. This feature can be turned off by calling pandoc like this: pandoc -f markdown-implicit_figures -t html your-file.md Does this solve your issue? ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <87k20pcqur.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>]
* Re: unwanted image captions [not found] ` <87k20pcqur.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> @ 2017-09-23 17:33 ` Clint Adams 0 siblings, 0 replies; 3+ messages in thread From: Clint Adams @ 2017-09-23 17:33 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw On Sat, Sep 23, 2017 at 06:38:36PM +0200, Albert Krewinkel wrote: > Pandoc has an 'implicit_figures' extension which will treat paragraphs > containing just an image as figures. This feature can be turned off by > calling pandoc like this: > > pandoc -f markdown-implicit_figures -t html your-file.md > > Does this solve your issue? Yes, thanks. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-09-23 17:33 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2017-09-23 16:20 unwanted image captions Clint Adams [not found] ` <20170923162044.aoj7ciyfuidd7d4u-Ef207QMqB4M@public.gmane.org> 2017-09-23 16:38 ` Albert Krewinkel [not found] ` <87k20pcqur.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> 2017-09-23 17:33 ` Clint Adams
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).