ladybird/Libraries/LibGemini
Nico Weber 08585bc7e9 LibGemini: Improve rendering of <pre> blocks
For

    ```foo
    asdf
    jkl;
    ```bar

we would previously generate

    <pre>foo
    f
    ;
    </pre>
    ```bar

Now we generate

    <pre>
    asdf
    jkl;
    </pre>

* no longer cut off the first 3 characters on most lines.
* don't include the closing ``` line in the output. in addition to
  omitting the '```', this also honors "Any text following the leading
  "```" of a preformat toggle line which toggles preformatted mode off
  MUST be ignored by clients." from the spec
* ignore the alt text after the toggle-on text. the spec leaves it to
  the client what to do with that alt text, but it tends to be metadata,
  and omitting it is simplest for the implementation, so do that.

Improves ascii art on many gemini pages, e.g. gemini://carcosa.net/
2020-10-06 20:29:11 +02:00
..
CMakeLists.txt LibGemini: Implement rendering text/gemini documents to HTML 2020-05-17 16:35:42 +02:00
Document.cpp LibGemini: Improve rendering of <pre> blocks 2020-10-06 20:29:11 +02:00
Document.h LibGemini: Fix crash on Link lines without explicit link text 2020-10-06 17:16:16 +02:00
Forward.h Meta: Add a script check the presence of "#pragma once" in header files 2020-05-29 07:59:45 +02:00
GeminiJob.cpp Refactor: Expose const_cast by removing ByteBuffer::warp(const void*, size_t) 2020-08-06 10:33:16 +02:00
GeminiJob.h LibGemini: Remove unused private field m_queued_finish 2020-08-04 17:42:08 +02:00
GeminiRequest.cpp LibGemini: Implement basic Gemini protocol support 2020-05-17 12:41:38 +02:00
GeminiRequest.h LibGemini: Implement basic Gemini protocol support 2020-05-17 12:41:38 +02:00
GeminiResponse.cpp LibGemini: Implement basic Gemini protocol support 2020-05-17 12:41:38 +02:00
GeminiResponse.h LibGemini: Implement basic Gemini protocol support 2020-05-17 12:41:38 +02:00
Job.cpp AK: Rename KB, MB, GB to KiB, MiB, GiB 2020-08-16 16:33:28 +02:00
Job.h LibGemini: Implement basic Gemini protocol support 2020-05-17 12:41:38 +02:00
Line.cpp LibGemini: Improve rendering of <pre> blocks 2020-10-06 20:29:11 +02:00