Skip to content

Markdown export #218

@Deuchnord

Description

@Deuchnord

Is your feature request related to a problem? Please describe.
The text export format is a good way to quickly export information, but may be difficult to read due to the lack of formatting.

Describe the solution you'd like
Markdown is a light markup language that gained in popularity, providing a way to quickly format a content in a Web context and still being readable in a simple text editor.
For instance, the following return of Kosmorro:

Saturday December 04, 2021

Object     Rise time    Culmination time    Set time
--------  -----------  ------------------  ----------
Sun          08:31           12:38           16:45
Moon         08:45           12:44           16:43
Mercury      08:53           12:50           16:47
Venus        11:38           15:32           19:27
Mars         06:50           11:19           15:49
Jupiter      12:52           17:47           22:42
Saturn       12:13           16:41           21:09
Uranus       15:09           22:29           05:54
Neptune      13:39           19:19           01:04
Pluto        11:40           15:43           19:46

Moon phase: New Moon
First Quarter on Saturday December 11, 2021 at 02:35

Expected events:
10:57  Moon is at its perigee
13:43  Moon occults Mercury

Note: All the hours are given in the UTC+1 timezone.

would look like this in Markdown:

# Saturday December 04, 2021

| Object       | Rise time | Culmination time | Set time
| ------------ |  -------- | ---------------- | --------
| **Sun**      | 08:31     | 12:38            | 16:45
| **Moon**     | 08:45     | 12:44            | 16:43
| **Mercury**  | 08:53     | 12:50            | 16:47
| **Venus**    | 11:38     | 15:32            | 19:27
| **Mars**     | 06:50     | 11:19            | 15:49
| **Jupiter**  | 12:52     | 17:47            | 22:42
| **Saturn**   | 12:13     | 16:41            | 21:09
| **Uranus**   | 15:09     | 22:29            | 05:54
| **Neptune**  | 13:39     | 19:19            | 01:04
| **Pluto**    | 11:40     | 15:43            | 19:46

**Moon phase:** New Moon  
First Quarter on Saturday December 11, 2021 at 02:35

## Expected events

- **10:57:** Moon is at its perigee
- **13:43:** Moon occults Mercury

*Note: All the hours are given in the UTC+1 timezone.*

The formatting result, e.g. on GitHub, would look like this:

Result

Saturday December 04, 2021

Object Rise time Culmination time Set time
Sun 08:31 12:38 16:45
Moon 08:45 12:44 16:43
Mercury 08:53 12:50 16:47
Venus 11:38 15:32 19:27
Mars 06:50 11:19 15:49
Jupiter 12:52 17:47 22:42
Saturn 12:13 16:41 21:09
Uranus 15:09 22:29 05:54
Neptune 13:39 19:19 01:04
Pluto 11:40 15:43 19:46

Moon phase: New Moon
First Quarter on Saturday December 11, 2021 at 02:35

Expected events

  • 10:57: Moon is at its perigee
  • 13:43: Moon occults Mercury

Note: All the hours are given in the UTC+1 timezone.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Ready

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions