-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
typst reader idea of horizontal rule doesn't match typst writer idea of it #10441
Comments
I don't think this is a bug.
|
Hm, OK, that'd make it round-trip when standalone is in effect and the definition is available, but still precludes roundtripping without it? It'd be nice if it was less brittle and recognized the meaning of #horizontalrule directly, and not through an implementation detail of it only becomes available in standalone. |
Well, Of course, if we really cared about round-tripping we could simply emit a |
Won't a |
That's an idea. Then we could just emit |
There’s a typst feature request for a stock semantic macro for hr typst/typst#5318 |
Well, if available, just using the definitive macro for horizontal rule would be the cleanest option of all. |
Explain the problem.
There's an asymmetry in handling horizontal rules in typst that prevents roundtrips from working.
Writer outputs
#horizontalrule
that the default template defines, but the reader expects a#line
.Pandoc version?
3.1 locally, 3.5 online.
Code pointer
pandoc/src/Text/Pandoc/Readers/Typst.hs
Line 348 in 5f35aa6
The text was updated successfully, but these errors were encountered: