HedgeDoc (antes llamado CodiMD) es un editor colaborativo de Markdown que permite trabajar con otras personas en tiempo real, visualizar resultados instantáneos y editar notas, diagramas o presentaciones de forma compartida.
Utilizando la imagen de LinuxServer:
--- services: hedgedoc: image: lscr.io/linuxserver/hedgedoc:latest container_name: hedgedoc environment: - PUID=1000 - PGID=1000 - TZ=Etc/UTC - "DB_HOST=<hostname or ip>" - DB_PORT=3306 - DB_USER=hedgedoc - "DB_PASS=<secret password>" - DB_NAME=hedgedoc - CMD_DOMAIN=localhost - CMD_URL_ADDPORT=false #optional - CMD_PROTOCOL_USESSL=false #optional - CMD_PORT=3000 #optional - CMD_ALLOW_ORIGIN=['localhost'] #optional - CMD_DB_DIALECT= #optional volumes: - /path/to/hedgedoc/config:/config ports: - 3000:3000 restart: unless-stopped
Si queremos crear notas indicando la URL, como por ejemplo, https://pad.example.org/mi-nota-alucinante, tendremos que activar la siguiente variable de entorno:
CMD_ALLOW_FREEURL=true
Hedgedoc sigue el estándar CommonMark de Markdown, pero también soporta algunas extensiones del GitHub Flavored Markdown
En esta página está la lista con todo lo que soporta su versión propia de Markdown.
En la instancia de demostración podemos ver una página con una muestra de todo lo que soporta.
En todas las notas que creemos es posible añadir información extra sobre la misma. Para ello, al comienzo de la nota escribiremos algo como:
--- title: Hola, mundo lang: es tags: pruebas, hedgedoc robots: noindex, nofollow ---
Comentario en Delete freely note:
Hi @JPT77!
Deleting a note as an admin is currently only possible via direct operation on the database. The easiest way to find the note in the database is by the “short id”. This can be found in the URL when opening the “publish” view.
Example: There’s a note at https://demo.hedgedoc.org/wNvA2KmtRHixDAn34984JQ that should be deleted. The “Publish” view (button in the top bar) links to https://demo.hedgedoc.org/s/yp1QGycyo. Therefore yp1QGycyo is the short id.
Now we can delete this note from the database using SQL:
DELETE FROM "Notes" WHERE shortid = 'yp1QGycyo';
Kind regards, Erik