Vote #81591
完了Enable task list items for CommonMark text formatting
0%
説明
The task list extensions will be a very nice addition for Common Mark text formatting.
journals
--------------------------------------------------------------------------------
I'm adding a patch for testing purposes, I still need to:
# Add tests
# Add an icon to JS toolbar
# Allow clicking task item checkboxes directly.
# Try to add this to Textile
From my point of view, the feature is useful enough only with the first 2 items and we can improve later with 3 and 4. What do you think?
Regarding the tech side, I tried to implement it using only the @tasklist@ extension provided by the CommonMark, but it requires to whitelist in the sanitize the following tags: @ul@, @li@, @input type="checkbox"@. Also, using this extensions it will make harder to port this feature to textile.
--------------------------------------------------------------------------------
I think we should deliver this along with the new CommonMark formatter. Any feedback is appreciated.
--------------------------------------------------------------------------------
Really nice feature. This should be delivered in Redmine 5.0.0.
Marius BALTEANU wrote:
> I'm adding a patch for testing purposes, I still need to:
>
> # Add tests
> # Add an icon to JS toolbar
> # Allow clicking task item checkboxes directly.
> # Try to add this to Textile
>
> From my point of view, the feature is useful enough only with the first 2 items and we can improve later with 3 and 4. What do you think?
I agree. I think it is still useful even without 2.
!{border: 1px solid grey;}.Screenshot_2021-10-09_at_17-25-08.png!
--------------------------------------------------------------------------------
I've updated the patch to include a test.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Here are other two patches:
* 0002: adds a task list item button to the JS toolbar
* 0003: updates the help file for en.
Go Maeda, please let me know if I can commit this.
--------------------------------------------------------------------------------
Feature added in r21383. You can now add task list items using the common_mark format @* [ ] Task title@ or by clicking the "Task list" icon !bt_tl.png! from the toolbar.
For now, to check the items, you need to use the Edit feature, we will try to allow this by clicking on the checkbox in the near future.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Closed,32424,CommonMark Markdown Text Formatting
relates,New,20698,Add support for task list items in Textile formatting