public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: "Pablo Rodríguez" <oinos-S0/GAf8tV78@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: --section-divs (Was: ANN: pandoc 2.0)
Date: Thu, 2 Nov 2017 18:32:32 +0100	[thread overview]
Message-ID: <a61dd93b-2c25-907d-d824-5ee7811163d8@web.de> (raw)
In-Reply-To: <4b0b5af6-08b9-1a6e-6a7c-b5ea4300e345-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>

On 11/01/2017 11:03 PM, Joseph Reagle wrote:
> I use of CSS selectors of the IDs and classes of the divs resulting
> from `--section-divs`, such as those below.
> [...]
> Now, even with `-w html4 --section-divs` I seem to be getting an
> xhtml document and sections without wrapping divs.
> [...]
> I can move my selectors to section tags easily enough, but I want to
> understand if there's an intentional with 2.0...?

Hi Joseph,

I cannot reproduce your issue. But I think there is none.

The contents of my source file (`hi.md`):

``` md
## Good feedback
1. highlights both strengths to continue and weaknesses to remedy
1. is focused on the task, not the learner
1. is prioritized and in manageable units towards remediable concerns
1. is specific and clear, connected to goals (rubric)
```

If I invoke `pandoc.exe --section-divs -t html hi.md` (which is version
2.0.1), I get

``` html5
<section id="good-feedback" class="level2">
<h2>Good feedback</h2>
<ol type="1">
<li>highlights both strengths to continue and weaknesses to remedy</li>
<li>is focused on the task, not the learner</li>
<li>is prioritized and in manageable units towards remediable concerns</li>
<li>is specific and clear, connected to goals (rubric)</li>
</ol>
</section>
```

If I invoke `pandoc --section-divs -t html hi.md`
(pandoc-1.19.2.1-3.fc25.i686, I used Wine for the binary above), I get:

``` html4
<div id="good-feedback" class="section level2">
<h2>Good feedback</h2>
<ol style="list-style-type: decimal">
<li>highlights both strengths to continue and weaknesses to remedy</li>
<li>is focused on the task, not the learner</li>
<li>is prioritized and in manageable units towards remediable concerns</li>
<li>is specific and clear, connected to goals (rubric)</li>
</ol>
</div>
```

What seems to be replaced is HTML4 with HTML5 as the default HTML
version in pandoc-2.0.x.

In HTML5 <section> is used (instead of <div>) to wrap text sections.

If I didn’t get it wrong, either you replace div with section in your
CSS selectors (in case you need this), or you have to ask for HTML4.

If I got it wrong, please provide the exact way in which you invoke pandoc.

I hope it helps,

Pablo
-- 
http://www.ousia.tk

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a61dd93b-2c25-907d-d824-5ee7811163d8%40web.de.
For more options, visit https://groups.google.com/d/optout.


  parent reply	other threads:[~2017-11-02 17:32 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-30  0:16 ANN: pandoc 2.0 John MacFarlane
     [not found] ` <20171030001651.GA74066-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2017-10-30  0:40   ` Kolen Cheung
     [not found]     ` <e31c9609-a808-4814-b20f-b4cf29016a7d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-10-30  1:27       ` Kolen Cheung
     [not found]         ` <55769679-aea7-4db6-a393-76022e45891e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-10-30  1:53           ` John MacFarlane
     [not found]             ` <20171030015351.GA81813-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2017-10-30  2:09               ` Kolen Cheung
2017-10-30  2:10   ` iandol
2017-10-30 19:42   ` Pablo Rodríguez
     [not found]     ` <fe571f1d-0d8a-de0f-2233-7b2328696333-S0/GAf8tV78@public.gmane.org>
2017-10-30 20:06       ` Kolen Cheung
2017-10-30 21:08       ` John MACFARLANE
2017-10-31 13:02   ` Philip Hodder
2017-11-01 20:12   ` Slide columns (Was: ANN: pandoc 2.0) Joseph Reagle
     [not found]     ` <2e57350e-2c6d-c2df-648d-342ee8db5a17-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
2017-11-01 21:37       ` +tex_math_dollars, reveal and mathjax " Joseph Reagle
     [not found]         ` <0c564a8a-6006-59f5-2369-6da47483f070-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
2017-11-02  1:03           ` John MACFARLANE
2017-11-02 11:40             ` Joseph Reagle
2017-11-02  1:05           ` John MACFARLANE
2017-11-01 22:03       ` --section-divs " Joseph Reagle
     [not found]         ` <4b0b5af6-08b9-1a6e-6a7c-b5ea4300e345-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
2017-11-02  0:51           ` John MACFARLANE
2017-11-02 17:32           ` Pablo Rodríguez [this message]
     [not found]             ` <a61dd93b-2c25-907d-d824-5ee7811163d8-S0/GAf8tV78@public.gmane.org>
2017-11-02 20:33               ` Joseph Reagle
2017-11-02  1:09       ` Slide columns " John MACFARLANE
2017-11-02 11:46         ` Joseph Reagle
     [not found]           ` <42635e48-5352-8446-a717-9f6059a4ad1a-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
2017-11-02 14:00             ` John Muccigrosso
2017-11-02 17:00             ` Joost Kremers
     [not found]               ` <8760asliou.fsf-97jfqw80gc6171pxa8y+qA@public.gmane.org>
2017-11-02 17:56                 ` Joseph Reagle
2017-11-02 14:15   ` ANN: pandoc 2.0 Conrad Cunningham
     [not found]     ` <c207be8c-8d7b-46c7-b2b9-17bb4533479d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-11-02 15:02       ` Philip Hodder
     [not found]         ` <691ef6f9-3f26-40cb-a86c-3745792ce12c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-11-02 15:06           ` Conrad Cunningham
2017-11-02 17:42       ` John MacFarlane
     [not found]         ` <20171102174219.GD33759-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2017-11-02 19:26           ` Conrad Cunningham
2018-01-09 17:06   ` John Muccigrosso
     [not found]     ` <026aceb1-fd4f-44a4-8539-91cd89584d58-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-01-09 17:52       ` John MacFarlane
     [not found] ` <CAFC_yuSfG7edXu1xWaO3_kzE_gt-CZbJdgtFADf_JyBYbECxOQ@mail.gmail.com>
     [not found]   ` <CAFC_yuQWhDrV1gvMC7ZfK6s4LUiPpc4LSNznPBatwpGG+NP5LQ@mail.gmail.com>
     [not found]     ` <CAFC_yuQWhDrV1gvMC7ZfK6s4LUiPpc4LSNznPBatwpGG+NP5LQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-10-30 10:23       ` BP Jonsson
     [not found]         ` <CAFC_yuSR6Z5qCgpfgV91CmhHRtbjQwpK5R0ji4qoFGRRkoD1Mg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-10-30 16:51           ` John MACFARLANE
2017-10-30 17:20           ` John MACFARLANE

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a61dd93b-2c25-907d-d824-5ee7811163d8@web.de \
    --to=oinos-s0/gaf8tv78@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).