~ 1 min read

Keep Line Breaks in DokuWiki

I have created the very simple [link id='124' text='text formatter plugin for DokuWiki'] mainly to solve the problem of pasting some text with line breaks. DokuWiki by default ignores these line breaks and this was a problem for me. Without knowing any better I quickly put together the [link id='124' text='wpre plugin'] which simply wraps whatever you want with <pre> tag. I later learned that there is a better plugin for this. It's called linebreak. It works fine for me, even with the latest DokuWiki release, but it seems that the author suggest to use xbr plugin instead.