Age | Commit message (Collapse) | Author |
|
|
|
|
|
'renderInlines' splits inline elements into lines (on newline) and
renders them one-by-one, so that line positions can be tracked. The
code is also a bit cleaner this way.
|
|
|
|
That wasn't a proper fix, and may lead to additional issues.
This reverts commit 14468d50a6b22c67e656cd2b2a5fb4c7dad692b2.
|
|
Usually there's none, but now it's possible for them to get there
with --no-wrap. Perhaps that should be fixed too.
|
|
|
|
Not for tables or lists, but for regular text lines. Using
visual-line-mode for that by default.
|
|
|
|
The list is ordered anyway, no need to keep numbers there.
|
|
Just to simplify it.
|
|
|
|
|
|
|
|
Based on line numbers that are attached to document blocks, not
dependent on window/terminal width.
Some bits can still be refined/refactored, but here's the initial
support.
|
|
- `sum lens /= 0` implies `length lens /= 0`, so no need to check the
latter after the former.
- Don't use `concat` for just two elements.
|
|
Don't try to estimate column widths if it leads to division by zero.
|
|
Pandoc adds them even when they are undefined, no need to add an
additional horizontal rule in such a case.
|
|
Insert empty lines conditionally instead of doing that between every
pair of blocks. It can be improved further, but looks slightly better
than it used to this way.
|
|
|
|
Now it is more compact, and that's another step towards image support
in the Emacs interface.
|
|
|
|
Some kind of image support can be introduced in the future, and it's
not quite correct to present images as links.
|
|
This is particularly important for code blocks.
|
|
|
|
|
|
Identifiers get handled better with those. And since they also add
divs, rendering of lists of blocks is slightly improved to avoid
unnecessary spacing.
|
|
|
|
|
|
|
|
Superscripts and subscripts, as they were rendered, shorten lines in
GUI Emacs, breaking tables if those contained subscripts or
superscripts. In terminal Emacs, they were just indistinguishable from
regular text. And there was a minor hack for these.
Mostly undoing that (for strikethrough as well), though leaving slight
raising.
|
|
The "note N" strings add to the overall width, so the width of notes
themselves should be reduced.
It's different in CLI and Emacs, and rather imprecise here, so can
still be improved -- but at least overflow is unlikely now.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
That is, add `Styled` constructors for those.
|
|
|
|
Styled elements now can be denoted, so that the emacs interface can
buttonize links, while it is still easy to ignore the semantics and
just render those elements.
The emacs interface is more mouse- and TAB-friendly now.
|
|
This is mostly needed for tables.
|
|
Fix link enumeration, and store the identifiers.
|
|
|