Skip to content

Conversation

cosven
Copy link
Contributor

@cosven cosven commented Feb 9, 2017

Currently, the task-list-wrapper-text is:
_task_list_warpper_str = r'<p><input type="checkbox" class="task-list-item-checkbox" %sdisabled>%s</p>'. In my opinion, the <p> tag is unnecessary.

I think the better option will be:
<input type="checkbox" class="task-list-item-checkbox" disabled> %s, as github also handles in this way.

I also have a simple comment on that PR: https://github.com/trentm/python-markdown2/pull/218/files#r100302342

@cosven cosven mentioned this pull request Feb 9, 2017
@nicholasserra
Copy link
Collaborator

Thanks for the PR and comments. Curious why you think the change is necessary? Did this cause an issue for you?

@cosven
Copy link
Contributor Author

cosven commented Feb 10, 2017

the two different wapper-text will cause much difference in UI.

before render result:
screenshot 2017-02-10 10 36 59

after render result:
screenshot 2017-02-10 10 38 52

the <p> tag will cause several newline (space) among each list item, which looks ugly and is uncorrectly.

@nicholasserra nicholasserra merged commit e921c8d into trentm:master Feb 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants