You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the following in Gmail or Blackboard, the conversion is wonky due to the first line:
Markdown:
* Need `'$'` in constructor
* Constructor and `display` don't have parameters
* No `return` for `menuChoice`
* Method `display` should not call `menuChoice()`
* Input in `menuChoice` should use `input.next().charAt(0)`
The output:
Need `’ in constructor
Constructor and display don’t have parameters
No return for menuChoice
Method display should not call menuChoice()
Input in menuChoice should use input.next().charAt(0)
` in constructor
Constructor and 0.07960530809955746 don’t have parameters
No 0.967272506292158 for 0.849369396167897
Method 0.9170844589050049 should not call 0.31504472305241105
Input in 0.1455992251161714 should use 0.2595394013807545
It appears to be the $ that's throwing it off in the first line. If I remove the first line entirely or change it to something like 'c' (replacing the $ with a regular character), it works like a peach.
This is feedback for a Java course I'm teaching, and one of the things the students need to do is initialize a char variable to a dollar sign character, so I'm trying to give them feedback to that effect, but getting the weird results.
I've tried escaping the $ character (though I didn't see anything about needing to do that anywhere) and that doesn't seem to work. :)
If I've missed something obvious, sorry for the bandwidth. I've been using Markdown and Markdown Here for years and this is the first really weird conversion issue I've stumbled across.
Thanks for the great work!
Any insights?
The text was updated successfully, but these errors were encountered:
It turns out the problem is user input gets passed as the replacement argument to a String.replace() call, but the replacement argument isn't just a plain string -- it has some magic values, including "$`".
The workaround is: Where you have one of the magic dollar-sign values, use two dollar signs. So, "$$`", etc.
When using the following in Gmail or Blackboard, the conversion is wonky due to the first line:
Markdown:
The output:
It appears to be the
$
that's throwing it off in the first line. If I remove the first line entirely or change it to something like'c'
(replacing the$
with a regular character), it works like a peach.This is feedback for a Java course I'm teaching, and one of the things the students need to do is initialize a
char
variable to a dollar sign character, so I'm trying to give them feedback to that effect, but getting the weird results.I've tried escaping the
$
character (though I didn't see anything about needing to do that anywhere) and that doesn't seem to work. :)If I've missed something obvious, sorry for the bandwidth. I've been using Markdown and Markdown Here for years and this is the first really weird conversion issue I've stumbled across.
Thanks for the great work!
Any insights?
The text was updated successfully, but these errors were encountered: