Steps to reproduce
I wanted the following Bash code in code blocks:
me=`whoami`
I tried the following:
`me=`whoami` `
```x=`whoami` ```
`me=\`whoami\` `
Expected result
I expected to see the code block:
me=`whoami`
Actual result
Instead of the expected result, what happened?
Screenshot:
Environment
OS: Linux
Browser: Firefox
4 Likes
Also reproducible on Mac/Google Chrome.
Erica
February 16, 2017, 1:03pm
3
Confirmed; thereās no way to escape with Markdown right now on Dynalist.
Honestly Iām not sure if weāre going to add escaping or just wait for WYSIWYG, since WYSIWYG is going to make the entire current formatting system obsolete.
@Shida , how much work would this be? What do you think?
2 Likes
Shida
February 16, 2017, 1:44pm
4
Not sure, we can try to patch it this time, but I think WYSIWYG might take some time. Itāll depend on how much this is needed ATM.
1 Like
Erica
February 16, 2017, 2:26pm
5
I donāt think itās that urgent, but it would be nice to have if itās low hanging fruit.
Your thoughts, @LinuxLefty ?
1 Like
Erica
June 7, 2017, 6:54pm
7
Update: you can use \
to escape things now, cheers! Available in latest version on web, other platforms will follow soon.
Lukas
September 29, 2017, 6:01am
8
Does this work for anyone?
Typing
`\``
gives me
\
`
instead of
`
Erica
September 29, 2017, 7:20pm
9
Yeah, thatās the case. The backspace is contained between the two backticks.
Did you expect something different?
Lukas
September 29, 2017, 8:56pm
10
I expected the backslash to escape the following backtick, so the rendered code block would just show a single backtick. In my example above, nothing is escaped (as shown in the second code line): Only the backslash is inside the code block, followed by a single plain text backtick.
Erica
October 3, 2017, 12:10am
11
+@Shida could you take a look at this escape character issue?
Just hit this issue today:
`log(\`test\`)`
Expected it to render as:
log(`test`)
Instead got:
log(\
test`)`
However, I got around the issue with triple backticks, which rendered it as expected:
```log(`test`)```
It even included nice syntax highlighting
So itās not really an issue as thereās a solid workaround, but out of curiosity was a fix for escaping a single backtick investigated?
Shida
March 28, 2020, 2:07am
14
Weird this was here since '17⦠and still not fixed! I will track it this time and make sure itās fixed soon.
Shida
April 2, 2020, 6:09pm
15
Should be fixed in latest update.
1 Like
@shida It seems this change has caused a regression in code block (triple backticks).
For example:
```foo `bar` baz```
Previously correctly rendered as:
foo `bar` baz
Now renders as:
foo bar baz
Escaping them doesnāt help either:
```foo \`bar\` baz```
Renders as:
foo \bar\ baz
Can confirm this regression is now fixed.
1 Like