Problem with using CSS counters to create numbered paragraphs

jim.cook's Avatar


11 Oct, 2018 01:05 PM

I'm using a CSS based on Outline Numbering to generate a document with outline numbered headings and numbered paragraphs. A segment from the CSS:

h1:before {
    content: counter(chapter) ". ";
    counter-increment: chapter; /* add 1 to chapter /
h1 { color: #000; counter-reset: subchapter; /
set section to 0 */ } h2:before { content: counter(chapter) "." counter(subchapter) " "; counter-increment: subchapter; } h2 { color: #111; counter-reset: section; }
This works fine during preview in the Marked 2 screen, for example a heading renders as "10.Responsibilities" and the subsequent paragraphs, prefixed by ## in the markdown, number as 10.1 and 10.2 etc. It used to work fine for PDF as well, however now when I export to PDF (continuous or paginated) the subchapter numbers don't increment, ie the above renders as 10. Responsibilities and then 10.1 and 10.1.

When I export to HTML the subchapter numbers increment correctly.

I've attached the CSS file I'm using, together with the input markdown document and the output PDF.

Thanks for your help

  1. Support Staff 1 Posted by Brett on 11 Oct, 2018 03:17 PM

    Brett's Avatar

    I'm able to replicate this issue, but not readily able to explain it. I don't have an immediate solution but will add it to my list of bugs to tackle before the next update.

  2. 2 Posted by jim.cook on 11 Oct, 2018 03:45 PM

    jim.cook's Avatar

    Hi Brett
    Thanks for your quick response, and also for a great product.
    I have to ask…
    Any ETA for next update?

  3. Support Staff 3 Posted by Brett on 11 Oct, 2018 03:47 PM

    Brett's Avatar

    I try to get them out weekly, but some take longer than others...

  4. 4 Posted by jim.cook on 11 Oct, 2018 03:48 PM

    jim.cook's Avatar

    Rgds Jim

  5. 5 Posted by jim.cook on 21 Oct, 2018 07:28 AM

    jim.cook's Avatar

    Hi Brett
    Any progress on this problem?
    And I seem to have created this support request as a private thread, can you/do you want to make it public? It would be easier to check on progress that way.
    Thanks for your help
    Regards Jim

  6. Support Staff 6 Posted by Brett on 21 Oct, 2018 12:50 PM

    Brett's Avatar

    I'm afraid that thus far it's remained a mystery to me, but I am still working on it as one of the last things I'd like to solve before pushing out the next update.

    I'll go ahead and make the conversation public.

  7. 7 Posted by jim.cook on 21 Oct, 2018 04:26 PM

    jim.cook's Avatar

    That’s great, thanks for the update and good luck with the bug.


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Already uploaded files

  • 14 KB
  • Numbered_paragraphs_Jim.css 7.76 KB
  • Dignity_At_Work_Policy-_Bullying_And_Harassment_In_The_Workplace.pdf 57.5 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac