Comments (3)
Thanks for the issue.
In fact, it is a default behavior, again.
Hugo will add an <li>
to every task list item. That produces an ugly big black circle point.
Take your test case as example, the final rendering result is:
<ul>
<li><input checked="" disabled="" type="checkbox">task1</li>
<li><input disabled="" type="checkbox">task2</li>
</ul>
My Hugo version is Hugo Static Site Generator v0.63.2/extended linux/amd64
.
The most difficult point is, I can't define the style of <ul> <li>
in task list seperately. If I define them in CSS, normal list will also be influenced.
Interestingly, I found a 3rd-party Hugo tutorial, and the <ul>
in this case is with a class named task-list
. But I can't reproduce in my environment. Maybe a deprecated feature in old version?
Furthermore, I checked the implementation in other themes. No implementations at all 😂️.
So I think this issue could be raised to Hugo official - let them add a class property to task list's ul
, so we can define the style.
from hugo-theme-diary.
I did a further search.
I searched task-list
in Hugo source code, and found that only in blackfriday
, the old default markdown renderer, can produce a ul
with task-list
class.
I set defaultMarkdownHandler
to blackfriday
in my top level config.toml
:
[markup]
defaultMarkdownHandler = "blackfriday"
And as expected, I got a <ul>
with task-list
class attached.
<ul class="task-list">
<li><label><input type="checkbox" checked="" disabled="" class="task-list-item"> task1</label></li>
<li><label><input type="checkbox" disabled="" class="task-list-item"> task2</label></li>
</ul>
So thanks for raising this problem, and I will open the issue.
(Opened, here: gohugoio/hugo#6837)
And please don't close this issue. I will add it back as soon as Hugo official fix this issue.
from hugo-theme-diary.
Closed. The author of goldmark didn't approve this feature.
from hugo-theme-diary.
Related Issues (20)
- would you please add a visiting stats banner at the most left bottom ? HOT 2
- Question about adding an author for posts HOT 4
- 是否可以考虑使用此字体 HOT 1
- 夜间模式下看不见表格内容 HOT 2
- images not displaying HOT 2
- Dark mode refactor HOT 4
- Single quote is replaced with ’ HOT 6
- How to add RSS feed? I don't understand where to add rss link. HOT 3
- Google Analytics 4 will be replaced by Universal Analytics HOT 3
- Way to remove the darkmode toggle? HOT 1
- The About page appears on the homepage article list HOT 2
- <br> new line is not supported in this theme? HOT 1
- Summary feature required
- Can you add Artalk comment function?
- Language meta label and <h1> needed for better SEO HOT 2
- Drawers are not hidden when clicking ToC items on mobile view. HOT 1
- Fix highlighting
- 作者能麻烦您考虑一下加上视频播放功能吗 HOT 1
- URL for Tags does not seem to use baseURL
- error calling Paginator: pagination not supported for this page HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-theme-diary.