WikiDocs
WikiDocs copied to clipboard
Annoying Errors When Saving Notes
Describe your issue
After using WikiDocs in my home lab—currently with 1,485 notes (content.md files) and 136GB of data—I’ve noticed some issues with the primary and secondary editors. What we see while editing doesn’t always match the saved content, and sometimes the discrepancy only appears after the second save.
Example 1
Steps to Reproduce:
- Add the following code to a code block in a wiki note:
# Call the function to create a backup
create_backup
LOG_FILE="$backup_file"
# Adiciona o Logotipo ao log
echo " _______ _______ " >> $LOG_FILE
echo " (\ ( ___ ) ( ____ \ " >> $LOG_FILE
echo " | ) | ( ) | | ( _\/ " >> $LOG_FILE
echo " | | | | | | | (_____ " >> $LOG_FILE
echo " | | | | | | | ___ \ " >> $LOG_FILE
echo " | | | | | | | ( ) | " >> $LOG_FILE
echo " | (____ | (___) | | (___) | " >> $LOG_FILE
echo " (______) (_______) (_______) bY PmT " >> $LOG_FILE
echo "" >> $LOG_FILE
echo "[$(date +"%Y-%m-%d %H:%M:%S")]" >> $LOG_FILE
sleep 1
read -p "Ficheiro de log $LOG_FILE criado com sucesso! Enter continue..."
- After saving, WikiDocs incorrectly escapes backslashes, converting
\into\textbackslasheven though they should remain untouched in a code block.
Result After Saving:
echo " (\ ( ___ ) ( ____ \ " >> $LOG_FILE
echo " | ) | ( ) | | ( _\textbackslash/ " >> $LOG_FILE
(Notice the unwanted \textbackslash insertion.)
Workaround:
If I save only the echo section, it works fine:
echo " (\ ( ___ ) ( ____ \ " >> $LOG_FILE
echo " | ) | ( ) | | ( _\/ " >> $LOG_FILE
Additional Issues
- There are other minor but annoying errors that are hard to track because the primary editor displays content differently from the secondary editor.
- Sometimes, inconsistencies only appear after multiple saves.
This behavior makes editing unreliable, especially for code blocks. Is there a way to fix this escaping issue?
Device and settings
windows 10 - mutiple browsers - wikidocs 1.0.76 on cpanel
Steps to reproduce
Copy past code
Screenshots (optional)
No response
Extra fields
- [ ] I'd like to work on this issue