Code Monkey home page Code Monkey logo

Comments (5)

jonatanschroeder avatar jonatanschroeder commented on July 3, 2024

For pl-file-editor the typical use is that you can add to the bottom of your question.html:

<pl-submission-panel>
  <pl-file-preview></pl-file-preview>
</pl-submission-panel>

from prairielearn.

jonatanschroeder avatar jonatanschroeder commented on July 3, 2024

If you want to see a formatted preview of your markdown submission instead, you can use:

<pl-submission-panel>
   <pl-xss-safe submitted-file-name="set1.md" language="markdown"></pl-xss-safe>
</pl-submission-panel>

from prairielearn.

BenjaminCosman avatar BenjaminCosman commented on July 3, 2024

I'll do that in the future; thanks! For folks who do not use this though, I wonder if one of the three options above might be a better default than a blank box? Most other elements show some representation of the submitted answer by default rather than a blank box.

from prairielearn.

jonatanschroeder avatar jonatanschroeder commented on July 3, 2024

@mwest1066 can probably talk to this further, but I believe changing this now may affect a lot of courses that rely on the current behavior.

from prairielearn.

mwest1066 avatar mwest1066 commented on July 3, 2024

I agree that the current behavior is not good, and that we really should have some kind of default submission display. The backward compatibility problem that @jonatanschroeder mentions is definitely a problem, however. @nwalters512 tagging you in on this in case you've got any good ideas.

from prairielearn.

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.