Comments (10)
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! 🎉
from mdit-py-plugins.
Cheers, happy for a PR 😄
from mdit-py-plugins.
Thoughts on the disabled thing? I'm not sure how people are using this plugin if that would break someone's use-case, like if they want to show a static set of checked and unchecked boxes. For my use-case, I want to create a checklist for contributors so I want it to be checkable.
from mdit-py-plugins.
Not sure I understand how markdown-it works. I thought this would fix the second bullet point:
diff --git a/mdit_py_plugins/tasklists/__init__.py b/mdit_py_plugins/tasklists/__init__.py
index 40a6d67..d261124 100644
--- a/mdit_py_plugins/tasklists/__init__.py
+++ b/mdit_py_plugins/tasklists/__init__.py
@@ -66,6 +66,10 @@ def tasklists_plugin(
tokens[parent_token(tokens, i - 2)].attrSet(
"class", "contains-task-list"
)
+ tokens[parent_token(tokens, i - 2)].attrSet(
+ "style", "list-style: none;"
+ )
+
md.core.ruler.after("inline", "github-tasklists", fcn)
But it doesn't seem to work.
from mdit-py-plugins.
I guess there already is an enabled
flag for the first point https://mdit-py-plugins.readthedocs.io/en/latest/#task-lists. I can't tell how I'm supposed to translate that to a myst conf.py flag, though.
from mdit-py-plugins.
I can't tell how I'm supposed to translate that to a myst conf.py flag, though
ah well that's different, for that we can add a configuration in myst-parser
from mdit-py-plugins.
executablebooks/MyST-Parser#686
from mdit-py-plugins.
The second point about the bullet points can be worked around by adding
.contains-task-list {
list-style: none;
}
to the custom.css.
from mdit-py-plugins.
Another thing I've noticed with GitHub is that the checkboxes themselves act as the bullet points. This means that all the text in that bullet is aligned to the right of the checkbox (I've converted the OP items to checkboxes to demonstrate this). The checkboxes from this extension don't work like this. They just render as a checkbox inline with the text.
I'm not clear yet what the difference is here, if it's the structure of the HTML or some CSS or something else.
from mdit-py-plugins.
Figured it out. For the correct wrapping you need
.task-list-item-checkbox {
margin: 0 0.2em 0.25em -1.4em;
}
Don't know if these CSS things should be done here or fixed in the individual themes.
from mdit-py-plugins.
Related Issues (20)
- Add line block plugin HOT 1
- Future of Admon Plugin HOT 1
- Update dollarmath to be inline with JS version HOT 1
- Support spaces in labels HOT 1
- Add fancy list support HOT 3
- Consider disallowing backslashes in MyST targets HOT 2
- The HTML I output doesn't have CSS. What's the reason? HOT 1
- Improve handing of tabs HOT 1
- Usage example HOT 1
- Do not allow blank lines within $$
- footnote with blank first line HOT 2
- converted formula lost its delimiters HOT 1
- myst_role misparses trailing \ HOT 1
- dollarmath_plugin `renderer` parameter does not work correctly in `0.3.4` HOT 2
- 0.4.0: pytest is failing HOT 1
- Fix the required version for markdow-it-py
- Admonition title syntax is not consistent with other implementation HOT 14
- Admonition: generate <details> with ??? HOT 9
- Package on pypi.org does not include tests HOT 2
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 mdit-py-plugins.