Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] What Md Gitea is using? #3231

Closed
mmarif4u opened this issue Dec 19, 2017 · 4 comments
Closed

[Question] What Md Gitea is using? #3231

mmarif4u opened this issue Dec 19, 2017 · 4 comments
Labels
type/question Issue needs no code to be fixed, only a description on how to fix it yourself.

Comments

@mmarif4u
Copy link

Can we have the link to it for referencing from it.

@lafriks lafriks added the type/question Issue needs no code to be fixed, only a description on how to fix it yourself. label Dec 19, 2017
@lafriks
Copy link
Member

lafriks commented Dec 19, 2017

Gitea is using https://github.com/russross/blackfriday for makrdown processing

@mmarif4u
Copy link
Author

I am trying to create a task list, which is not mentioned in the above URL. It do works somehow but adding the bullet to it.

- [ ] Migrate the remaining posts

selection_001

@modmew8
Copy link
Contributor

modmew8 commented Jan 3, 2018

GitHub assigns a css class to the ul- and li-elements, if a checkbox is present:

<ul class="contains-task-list">
  <li class="task-list-item">
    <input checked="" class="task-list-item-checkbox" disabled="" id="" type="checkbox">Text
  </li>
</ul>
  • like this

And the css rules for task-list-item remove the bullets using list-style-type: none;.

This is necessary to preserve the bullets for unordered lists, that are not task-lists.

  • like this

So the parser should assign styled classes in case of a present task-list. (GitHub style)

Another way would be the parent-selector in Selectors Level 4, that could be used to select li-Elements containing input-checkboxes. There would be no changes on the html parser necessary this way - but this is not supported by browsers yet (but achieveable with js).

@mmarif4u mmarif4u closed this as completed Apr 3, 2018
@lofidevops
Copy link

This issue is missing some keywords which would make it easier to find: markdown, commonmark

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/question Issue needs no code to be fixed, only a description on how to fix it yourself.
Projects
None yet
Development

No branches or pull requests

4 participants