derlin / bitdowntoc

Online and command-line Markdown TOC generator, with built-in support for BitBucket Server, GitHub, Gitlab, dev.to and more!
https://bitdowntoc.derlin.ch
Other
82 stars 7 forks source link

Custom line separators #54

Open dfranco opened 1 month ago

dfranco commented 1 month ago

Hi @derlin ,

it would be nice to have another cli parameter to customise the line separators.

Actually, the default line separator character is CRLF so \r\n

Unless I missed it, this option does not seem to exist yet.

Thanks for the great tool by the way!

Best,

derlin commented 1 month ago

Hello you, long time no see :)

Indeed, the line separator is currently hard-coded. However, it is \n and not \r\n... What do you mean by

the default line separator character is CRLF so \r\n

I am wondering though: is it better to provide an option, or to try to detect the line separator from the text/doc itself?

dfranco commented 1 month ago

Hi there, indeed, long time no see :)

Hello you, long time no see :)

Indeed, the line separator is currently hard-coded. However, it is \n and not \r\n... What do you mean by

the default line separator character is CRLF so \r\n

That's not what my IDE tells me :)

I am wondering though: is it better to provide an option, or to try to detect the line separator from the text/doc itself?

An extra parameter would be nice, including an "auto detect " one

Best,

derlin commented 5 days ago

Hello @dfranco , I am definitely not able to reproduce the issue, you'll have to show me.

dfranco commented 4 days ago

Hello @dfranco , I am definitely not able to reproduce the issue, you'll have to show me.

Let's plan a call so I can show you

Best,