DanThrane / tekvideo.sdu.dk

http://tekvideo.sdu.dk
1 stars 3 forks source link

Error in viewing math in exercise #110

Closed henrikmidtiby closed 8 years ago

henrikmidtiby commented 8 years ago

When writing math over multiple lines, the first visible char of each line seems to be removed ...

Reproduce with the following example

{
  "name": "Taylor polynomier 2 - mathjax broken?",
  "document": "\nDette ser forkert ud, plusset mangler\n[[eq \nA \n+ B\n]]\n\n\n\n\n[[ref ny-input]] ",
  "widgets": {
    "ny-input": {
      "type": "equation-input",
      "properties": {
        "content": "A + B"
      },
      "name": "ny-input"
    }
  }
}
DanThrane commented 8 years ago

Markdown parsing and rendering was done before widget parsing. This should be the other way around. In this case the plus was converted into a list item by the markdown renderer. Fixed in DanThrane/tekvideo-components@7c6afef7bc4e32a2f98f23eec9909535151b7d37