Open Amparose opened 2 months ago
I'm experiencing a similar issue. It seems to be a particular problem with HTML codeblocks. ðŸ˜
If I write the html code below in logseq and sync it to Anki, I get the following
<!DOCTYPE html>
<title>Title</title>
<style>body {width: 500px;}</style>
<script type="application/javascript">
function $init() {return true;}
</script>
<body>
<p checked class="title" id='title'>Title</p>
<!-- here goes the rest of the page -->
</body>
I think this is very much related to the issue you're describing.
Hi, I've been studying SQL recently and found a similar error.
I am using version v6.1.0.
-
#include <stdio.h>
int main() { printf("%d\n", 5 < 10 && 10 > 5); return 0; }
#include <iostream>
int main() { std::cout << (5 < 10 && 10 > 5) << std::endl; return 0; }
public class Main {
public static void main(String[] args) { System.out.println(5 < 10 && 10 > 5); }
}
console.log(5 < 10 && 10 > 5);
5 < 10
10 > 5
>
<
&
< > &
< > &
print(5 < 10 and 10 > 5)
<!DOCTYPE html>
<html>
<body>
</body>
</html>
SELECT CASE WHEN 5 < 10 AND 10 > 5 THEN 'True' ELSE 'False' END AS result;
&
Other than SQL, <, >, & are properly represented in other languages.
I'm on 6.1.0, so javascript is also represented correctly.
javascript
postgresql
instead of sql
in code block just in case, and >, <, & are represented correctly.
It seems that some special characters (
< > &
) that this plugin uses aren't being escaped when in a code fenced block.Add a code fence block to Logseq with these commonly-used characters (ignore the backslashes to escape backticks):
The resulting card in Anki ends up as:
When it should be: