Asterick vs Line
Hey There
I am creating a custom theme for Marked 2 and I am trying to provide different characters for lists (see screenshot from Bear)
I want to style these as checkboxes
- My list
- item 1
- item 2
I want to replace the asterisk with a custom character (in my case, a simple bullet)
* Parent
* child
* child
Can someone help me find the specific class where I can apply this?
-
bear.png 19.4 KB
Keyboard shortcuts
Generic
? | 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
Support Staff 1 Posted by Brett on 27 Jun, 2017 11:52 PM
You can't. Markdown treats -, *, and + the same, interpreting them as
bullets. There's no difference in the rendered output.
You can create checkboxes by using `- [ ]` and `- [x]`, though.
-Brett
2 Posted by Michael Erickso... on 27 Jun, 2017 11:54 PM
Hey Brett
Thanks for the input… can I style - [ ] and - [x] with an emoji or something?
Hows the weather in Minnesota right now?
-me
Support Staff 3 Posted by Brett on 28 Jun, 2017 01:10 AM
So this syntax:
Will give you:
And the HTML looks like:
So the selector for these would be...
ul.task-list li.gh-incomplete input
ul.task-list li.gh-complete input
Here's an example styling from http://www.csscheckbox.com/:
(You can add this directly to Preferences->Style->Extra CSS to apply to all themes. Adding the #wrapper helps increase specificity to override Marked's default styling.)
The above CSS will create:
Support Staff 4 Posted by Brett on 28 Jun, 2017 01:10 AM
And the weather is finally cool again, a nice sunny and 70° all week :).