obsidian-trim-whitespace
obsidian-trim-whitespace copied to clipboard
Doesn't trim whitespaces on lines starting with #
I use obsidian to save code snippets. I have the following code snippet
#!/bin/bash -l
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=2
#SBATCH --cpus-per-task=18
#SBATCH --ntasks-per-core=1
#SBATCH --time=00:30:00
#SBATCH --partition=debug
#SBATCH --constraint=mc
#SBATCH --hint=nomultithread
#SBATCH --mem=120GB
export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK
srun ../cmake-build-relwithdebinfo-daint/exec
The problem is now, that sbatch does not accept trailing whitespace in the lines starting with #
. But this obsidian-trim-whitespace
does not trim them. Presumably because headings get treated differently? Can we change that? Maybe only inside code environments?