#25 Stop pandoc from encoding some chars such as squotes

Open
opened 2 years ago by vaeringjar · 4 comments

I think this gets activated with the lua-filter. For example:

' becomes

Several of the emojis have similar issues.

It seems like escaping the char \' fixes the issue on build, but maybe I can find a way to fix this without rewriting every instance of each char.

Or maybe the filter needs a flag.

I think this gets activated with the lua-filter. For example: `'` becomes `’` Several of the emojis have similar issues. It seems like escaping the char `\'` fixes the issue on build, but maybe I can find a way to fix this without rewriting every instance of each char. Or maybe the filter needs a flag.
vaeringjar commented 2 years ago
Owner

Oh, maybe this needs to use markdown-smart instead of markdown. In which case, this is a bug for fenrisg.

Either way, I'll figure it out.

Oh, maybe this needs to use markdown-smart instead of markdown. In which case, this is a bug for fenrisg. Either way, I'll figure it out.
vaeringjar commented 2 years ago
Owner

I fixed the apostrophes at build time with markdown-smart, but the emojis and the footnotes section chars for still have char encoding problems after archiving.

I'll probably end trying without the lua-filter and maybe end up writing a more thorough integration/system test in fenrisg that uses the expected input and output chars from both the Peers and ForgeFed's emojis and the .

Anyway, for now I think I'm done.

I fixed the apostrophes at build time with markdown-smart, but the emojis and the footnotes section chars for `↩` still have char encoding problems after archiving. I'll probably end trying without the lua-filter and maybe end up writing a more thorough integration/system test in fenrisg that uses the expected input and output chars from both the Peers and ForgeFed's emojis and the `↩`. Anyway, for now I think I'm done.
vaeringjar commented 2 years ago
Owner

Here's where I got the three other emojis:

https://www.unicode.org/emoji/charts/full-emoji-list.html

I did try a quick bash test, but the look like they're equal on my system.

Here's where I got the three other emojis: https://www.unicode.org/emoji/charts/full-emoji-list.html I did try a quick bash test, but the look like they're equal on my system.
vaeringjar commented 2 years ago
Owner

Another thing, I can't seem to get NAB to save any of the emojis in a comment to show my examples. I tried a few times on different comments and I keep getting a 500 error.

EDITS:

Okay it looks like I can use the HTML encoded versions.

📚

📚

But I really am done now. I need to take a break.

Another thing, I can't seem to get NAB to save any of the emojis in a comment to show my examples. I tried a few times on different comments and I keep getting a 500 error. EDITS: Okay it looks like I can use the HTML encoded versions. `📚` 📚 But I really am done now. I need to take a break.
Sign in to join this conversation.
No Label
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.