Project

General

Profile

Actions

Defect #37694

closed

CommonMark Markdown task list item markers are not exported to PDF

Added by pasquale [:dedalus] over 2 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
PDF export
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

When the text formatting is set to CommonMark Markdown (github flavored), the export in pdf not honor this setting. For example a task list isn't exported as is but as simple numbered\bulleted list.


Files

common_mark_chrome.png (27.7 KB) common_mark_chrome.png Jun NAITOH, 2023-07-15 14:42
common_mark_acrobat.png (53.9 KB) common_mark_acrobat.png Jun NAITOH, 2023-07-15 14:42
common_mark_firefox.png (19 KB) common_mark_firefox.png Jun NAITOH, 2023-07-15 14:42
common_mark_redmine.png (28.2 KB) common_mark_redmine.png Jun NAITOH, 2023-07-15 14:42
common_mark_mac_preview.png (49.3 KB) common_mark_mac_preview.png Jun NAITOH, 2023-07-15 14:42
Actions #1

Updated by Marius BĂLTEANU about 2 years ago

  • Target version set to 5.0.3
Actions #2

Updated by Marius BĂLTEANU about 2 years ago

  • Target version changed from 5.0.3 to 5.0.4
Actions #3

Updated by Marius BĂLTEANU about 2 years ago

One way to fix this is to add some custom CSS styles to render the task items as checkboxes. Any other ideas?

Actions #4

Updated by Marius BĂLTEANU about 2 years ago

  • Target version changed from 5.0.4 to 5.0.5
Actions #5

Updated by Roland Lammel almost 2 years ago

Seems also related to #38215 (formatting of nested tasklist)

Adjusting CSS for PDF export seems like a good approach here.

Actions #6

Updated by Go MAEDA almost 2 years ago

  • Target version changed from 5.0.5 to 5.0.6
Actions #7

Updated by Jun NAITOH over 1 year ago

I have added support for GitHub flavored Markdown task list items (extension) in rbpdf 1.21.3.

See: https://github.com/naitoh/rbpdf/pull/84

Redmine

PDF Output

Chrome 114

Acrobat Reader 2023.003.20244

Firefox 115

  • Problem : If unchecked, not displayed.

macOS 13.4 preview

  • Problem : CheckBox can be turned on or off.
Actions #8

Updated by Go MAEDA over 1 year ago

  • Target version changed from 5.0.6 to 5.0.7
Actions #9

Updated by Go MAEDA about 1 year ago

  • Subject changed from Export in pdf not honor the CommonMark Markdown (github flavored) text formatting to CommonMark Markdown task list item markers are not exported to PDF
  • Target version changed from 5.0.7 to 5.0.6
Actions #10

Updated by Go MAEDA about 1 year ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Jun NAITOH wrote in #note-7:

I have added support for GitHub flavored Markdown task list items (extension) in rbpdf 1.21.3.

See: https://github.com/naitoh/rbpdf/pull/84

Thank you, the problem that task list item markers are not properly exported to PDF was fixed by updating rbpdf to 1.21.3. I have committed r22318 to ensure that rbpdf 1.21.3 or later is used.

Actions

Also available in: Atom PDF