プロジェクト

全般

プロフィール

Vote #81591

完了

Enable task list items for CommonMark text formatting

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Text formatting_26
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
26
version_id:
155
issue_org_id:
35742
author_id:
107353
assigned_to_id:
107353
comments:
10
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

The task list extensions will be a very nice addition for Common Mark text formatting.

https://github.com/gjtorikian/commonmarker#extensions


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

Admin Redmine さんが約2年前に更新

  • カテゴリText formatting_26 にセット
  • 対象バージョン5.0.0_155 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0