Project

General

Profile

Actions

Feature #20691

closed

Add ballot boxes (☐,☑,☒) to Lists in Wiki Textile/Mardown (Redcarpet)

Added by Hans Ginzel over 9 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
Wiki
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate

Description

Add please ballot boxes

☐    U+2610        ballot box
☑    U+2611        ballot box with check
☒    U+2612        ballot box with cross

to Lists in both Textile and Markdown (RedCarpet) formatting engines.

It is a good convention from Zim. http://zim-wiki.org/manual/Help/Wiki_Syntax.html#Lists


Related issues

Is duplicate of Redmine - Feature #20698: Add support for task list items in Textile formattingNew

Actions
Actions #2

Updated by Toshi MARUYAMA about 9 years ago

  • Related to Feature #20698: Add support for task list items in Textile formatting added
Actions #3

Updated by Stéphane Lavergne almost 7 years ago

FYI this can be accomplished somewhat cleanly by creating macros in a plugin. This is the quick hack which I used, saved as plugins/redmine_wiki_checkboxes/init.rb:

require 'redmine'

Redmine::Plugin.register :redmine_wiki_checkboxes do
  name 'Redmine Wiki Checkboxes plugin'
  author 'Stephane Lavergne'
  description 'Adds x, z and o formatting macros'
  version '0.0.2'
  url 'https://github.com/vphantom'
  author_url 'https://github.com/vphantom'
  requires_redmine :version_or_higher => '3.4.0'
end

Redmine::WikiFormatting::Macros.register do
  desc "Unchecked checkbox" 
  macro :o do |obj, args|
    '<b style="font-size:133%;">&#x2610;</b>'.html_safe
  end
end

Redmine::WikiFormatting::Macros.register do
  desc "Checked checkbox" 
  macro :x do |obj, args|
    '<b style="font-size:133%;color:#009900;">&#x2611;</b>'.html_safe
  end
end

Redmine::WikiFormatting::Macros.register do
  desc "Crossed checkbox" 
  macro :z do |obj, args|
    '<b style="font-size:133%;color:#bb0000;">&#x2612;</b>'.html_safe
  end
end

They cannot be used as list bullets per se, but it still opens decent possibilities.

Actions #4

Updated by Marius BĂLTEANU almost 3 years ago

  • Related to deleted (Feature #20698: Add support for task list items in Textile formatting)
Actions #5

Updated by Marius BĂLTEANU almost 3 years ago

  • Is duplicate of Feature #20698: Add support for task list items in Textile formatting added
Actions #6

Updated by Marius BĂLTEANU almost 3 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

The CommonMark formatter that is available in Redmine 5.0.0 (#32424) allows adding task list items, please see #35742 for more details.

In #20698 we will track support for Textile.

Actions #7

Updated by Marius BĂLTEANU almost 3 years ago

Also, having a crossed checkbox is not usual so I think we should not support this feature.

Actions

Also available in: Atom PDF