Giter Site home page Giter Site logo

Comments (7)

jjallaire avatar jjallaire commented on August 27, 2024

Yes, we will definitely do this. @hadley Asked for this right away as well, it may actually end up being a more popular way to provide hints than code.

from learnr.

jjallaire avatar jjallaire commented on August 27, 2024

I've added the ability to compose hints in markdown, documentation is here: https://rstudio.github.io/tutor/45796A4F836C4B5B/exercises.html#hints_and_solutions

from learnr.

dtkaplan avatar dtkaplan commented on August 27, 2024

from learnr.

jjallaire avatar jjallaire commented on August 27, 2024

I think we can either have the hints show up in the same frame as code or we can add some automatic highlighting of hint divs. I was thinking that by inserting the markdown hint into the area below the code it could be somewhat more expansive. I also thought that the framing that we use for code hints might be kind of a distraction / too busy for markdown hints.

So we could definitely add some framing for hints displayed below to make them more obvious. The question I'm interested in is which is more desirable -- markdown hints above in the same frame as code or markdown hints below.

@hadley had some thoughts about this (I believe he favored below but I don't recall exactly) so he might want to weigh in also.

from learnr.

dtkaplan avatar dtkaplan commented on August 27, 2024

I'm neutral about above or below, just so long as there is a clear indication to the reader that a hint has appeared.

Regarding the

style of indicating a formatted hint, I wonder whether it would be better to use the regular chunk style (as with code hints) but with a chunk option that lets knitr format the markdown/rmarkdown contents of the chunk and wrap them in the
.

from learnr.

jjallaire avatar jjallaire commented on August 27, 2024

Okay, I just added a panel border treatment around the hint HTML. Let me know if that seems like enough (I'm wary of making it too busy as there are already quite a few boxes/headers within tutorials).

In terms of using regular code chunks for hints, I don't like this because you are now forcing the author to write markdown in an R code editor (thus giving up all of our markdown editing tools) as well as making it impossible to embed other R code chunks in the hint (since you can't next code chunks).

from learnr.

dtkaplan avatar dtkaplan commented on August 27, 2024

from learnr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.