Skip to content

Modified markdown rendering to include GFM-style checkboxes - #8402

Closed
jojoelfe wants to merge 1 commit into
ipython:3.xfrom
jojoelfe:3.x
Closed

jojoelfe wants to merge 1 commit into
ipython:3.xfrom
jojoelfe:3.x

Conversation

@jojoelfe

@jojoelfe jojoelfe commented May 3, 2015

Copy link
Copy Markdown

Hi,

this is a quick implementation of the task/todo feature of Github flavored markdown as requested in issue #6288. The discussion suggests that his feature should be implemented by marked.js. However, a meaningful implementation should be able to modify the underlying markdown and is therefore out of the scope of marked.js.

For me this would be very helpful as I manage many ongoing experiments with notebooks and having a quick TODO feature is quite nice.

Right now checking a box triggers a complete rerendering of the cell, which might be annoying for long markdown. But I did not want to mess with the set_text function since I don't know if any important events are triggered from there.

Thanks,

Johannes

@jdfreder

jdfreder commented May 6, 2015

Copy link
Copy Markdown
Contributor

We've considered maintaining an IPython Markdown flavor in the past and decided the costs outweigh the benefits. My opinion is that if marked.js implements the markdown to html checkboxes, maybe markedjs/marked#587, then we can think about implementing the reverse in the notebook.

However I won't close the PR, giving others a chance to weigh in.

@jdfreder jdfreder added this to the 5.0 milestone May 6, 2015
@minrk

minrk commented May 6, 2015

Copy link
Copy Markdown
Member

The point that @jojoelfe makes about clicking the checkbox modifying the markdown source means it can't feasibly be done solely in marked. I'm not sure what that means we should do about it.

@jdfreder

jdfreder commented May 6, 2015

Copy link
Copy Markdown
Contributor

My suggestion was to wait for marked to take the first step, and then implement our part (HTML -> MD).

@minrk

minrk commented May 6, 2015

Copy link
Copy Markdown
Member

@jdfreder I think that makes sense.

@minrk minrk closed this Jul 11, 2015
@minrk minrk modified the milestones: no action, 5.0 Jul 11, 2015
@ChristianKurz

Copy link
Copy Markdown

Seems like chjj/marked is no longer maintained. We should consider switching to one of the maintained forks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants