openKB icon indicating copy to clipboard operation
openKB copied to clipboard

striked through markdown seems not to work

Open jxsl13 opened this issue 7 years ago • 3 comments

bildschirmfoto 2018-09-25 um 02 28 01

the in text editor preview is working fine, but sadly not the preview or articles.

jxsl13 avatar Sep 25 '18 00:09 jxsl13

Is this project still active? This is a relatively simple issue that has not had a response of any kind in the past nine months...

WebMatrixware avatar Jun 12 '19 20:06 WebMatrixware

project seems dead, I found an alternative that's called bookstack.

jxsl13 avatar Sep 25 '19 17:09 jxsl13

To enable strike-though is very simple as you say so I am a little concerned at having chose this project - I certainly hope its not dead. I initially got a very quick & promising reply from @mrvautin when I wrote on an issue about mermaid charts & he said he would accept PR. I have since created a PR (and have others almost ready too - like a fix for this issue) however now I am now getting zero response :(

Any how, If you wish to fix this yourself then...

  1. In file public/javascripts/OpenKB.js, find code toolbar: ['bold', 'italic', 'heading', '|' and change it to toolbar: ['bold', 'italic', 'strikethrough', 'heading', '|'
  2. In file public/javascripts/OpenKB.js, find the array allowedTags: [] and add 's' element
  3. In file routes/common.js, find the array allowedTags: [] and add 's' element

NB: Might be necessary to run npm run uglify before running npm run start.

Steve-Mcl avatar Oct 08 '19 11:10 Steve-Mcl