Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DokuWiki blockquote with linebreaks #6461

Closed
vaniwiki opened this issue Jun 14, 2020 · 9 comments
Closed

DokuWiki blockquote with linebreaks #6461

vaniwiki opened this issue Jun 14, 2020 · 9 comments

Comments

@vaniwiki
Copy link

> When I have blockquote markup like this
> it will render as one html blockquote, but with <br/>
> at the end of each line. Possible to fix?
@jgm
Copy link
Owner

jgm commented Jun 15, 2020

It doesn't seem to do that:
https://pandoc.org/try/?text=%3E+test+one%0A%3E+test+two%0A%3E+test+three%0A&from=dokuwiki&to=html5&standalone=0
Are you using an old version prehaps?

@vaniwiki
Copy link
Author

No, what I mean is that the actual DokuWiki parser does this, which is what I want. I am using the blockquote markup for ancient poetry, spanning tens of thousands of documents, and thought to use Pandoc to convert these to PDF's. I didn't know about the Pandoc test though, that's handy.

@jgm
Copy link
Owner

jgm commented Jun 15, 2020

Oh, I see -- in a dokuwiki block quote there's a hard line break inserted after each line?
We could change pandoc's parser to do that.
Can you point to documentation or a live demo?

@vaniwiki
Copy link
Author

I didn't find it specifically mentioned in documentation, but I made a quick test in the DokuWiki playground: https://dokuwiki.org/playground:playground

@vaniwiki
Copy link
Author

While I'm at it, DokuWiki makes three hyphens (---) into an em-dash. Two hyphens (--) becomes an en-dash. I'll include those in the playground test, done.

@jgm
Copy link
Owner

jgm commented Jun 15, 2020

Can you adjust the playground to show what happens when you have blank lines, lists, etc inside the blockquote?

> foo bra
> baz
>
> bim bam
>
>  - one
>  - two
>
> > nested
> unnested

@vaniwiki
Copy link
Author

vaniwiki commented Jun 15, 2020

Updated to exact specifications, with one exception, nested must be >> with no space between.

@jgm
Copy link
Owner

jgm commented Jun 15, 2020

OK, looks like for blank lines we just get two <br>s, and the list isn't parsed as a list.

@vaniwiki
Copy link
Author

In my case, I use this markup exclusively for poetry, so no nesting or lists, but the occasional blank line between two combined verses. I assume these things should have been better documented in DokuWiki already, but I think it is wonderful that you're adding this support to Pandoc! :)

Also, if not too much hassle don't forget about the en and em dashes, -- and --- respectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants