confluence-to-markdown-converter icon indicating copy to clipboard operation
confluence-to-markdown-converter copied to clipboard

Question marks breaking the tooling

Open GeertvanHorrik opened this issue 8 years ago • 2 comments

If a title contains a question mark, it tries to create a file on disk with a question mark. I think special characters should be replaced with _ ?

GeertvanHorrik avatar Jun 03 '17 09:06 GeertvanHorrik

Same for & btw.

GeertvanHorrik avatar Jun 03 '17 09:06 GeertvanHorrik

Making this change in Page.coffee:

@heading.replace(/[\s\\/()]/g, '_').replace('?', '_').replace('&', '_') + '.md'

GeertvanHorrik avatar Jun 03 '17 09:06 GeertvanHorrik