Repository navigation
Replies: 1 comment
|
This appears in normal Another concern is that kramdown supports both block and inline attribute lists. So it can be valid syntax to have an attribute list within an existing line. But the semantics are different depending on whether it gets its own line. These context-dependent semantics bring in some challenges for Rewrap. Rewrap would need to understand the context and preserve it when wrapping. If it's already at the end of the line, it would need to be glued to that line and perhaps that line would need to be marked by rewrap as not wrappable. I'm not sure how easy this would be to get right. I'd like to give this some more thought to decide if and how it should be implemented. If you have any more relevant information about these attribute lists or any ideas about how they should be wrapped, please let me know. I'm open to suggestions and ideas. Also please feel free to look at the Rewrap code to brainstorm ideas, as that may help move things along. |
Uh oh!
There was an error while loading. Please reload this page.
In Kramdown you can add attributes to be used in the rendering process separated by a newline from the paragraph they belong to. Those should not be wrapped around.
Example:
This is some text! {: class1 } {: class1 } This works as well!is rewrapped to this at the moment:
This is some text!{: class1 } {: class1 }This works as well!which does not work anymore.
Documentation:
https://kramdown.gettalong.org/syntax.html#block-ials
All reactions