AminetAminet
Search:
85852 packages online
• About
• Recent
• Browse
• Search
• Upload
• Setup
• Services

util/dtype/markdown_dt.lha

Mirror:Random
Showing: m68k-amigaos iconppc-amigaos iconppc-morphos iconi386-aros iconi386-amithlon iconppc-warpup iconppc-powerup icongeneric iconother icon
No screenshot available
Short:Markdown datatype: tables, code, images
Author:Serkan Dursun
Uploader:Serkan Dursun <blasterreal gmail com>
Type:util/dtype
Version:1.0
Architecture:m68k-amigaos >= 3.2.0
Date:2026-11-15
Requires:OS 3.2, 68020; text/edit/EmojiGear5.3.lha + TTF fonts advised
Distribution:Aminet
Download:util/dtype/markdown_dt.lha - View contents
Readme:util/dtype/markdown_dt.readme
Downloads:14

markdown.datatype shows Markdown documents (.md, .markdown) in MultiView
and in every other program that uses datatypes, the way GitHub or the
preview of VS Code show them - not as plain text with stars and hashes.

Features
- Headings in three sizes, bold, italic, struck out text, inline code,
  keys (<kbd>), horizontal rules, hard line breaks
- Bullet, numbered and task lists, nested in any depth
- Tables with column alignment; cells are wrapped inside their column
- Code blocks in a box with syntax colours (C/C++, Python, JavaScript,
  Java/C#, Rust, Go, shell, SQL, Lua, PHP, 68k assembler) and a "Copy"
  button that puts the code into the clipboard
- Pictures (![alt](file) and <img>), loaded with the system's picture
  datatypes: PNG with alpha, JPEG, IFF and whatever else you have;
  scaled down to the window, optional width, centred with <p align>
- Links: web links open your browser (openurl.library), #heading links
  scroll, links to other files open a new MultiView window
- Block quotes, nested, and GitHub alerts ([!NOTE], [!TIP],
  [!IMPORTANT], [!WARNING], [!CAUTION])
- Entities (&copy; &euro; ...), :emoji: short codes, common HTML tags
  (<b> <i> <a> <img> <br> <kbd> <p align> <div align> <hN>, comments),
  front matter is hidden
- Full UTF-8 text with colour emoji through utf8rastport.library
  (FreeType); without it the text is converted to the system's 8 bit
  character set and drawn with the system fonts
- The text is wrapped again when the window is resized; layout and
  drawing run in their own process, MultiView stays responsive
- MultiView's "Copy" copies the text of the document, "Save As" writes
  the Markdown source
- A default icon for Markdown files (def_markdown.info) and a tool that
  adds the file type to DefIcons, so .md files get this icon on
  Workbench and open in MultiView with a double click
- A demo document with pictures, tables and code (Demo/Demo.md)
- Installer script (English and Turkish) that installs and removes

REQUIREMENTS - please read before installing
   The datatype installs on any AmigaOS 3.x, but it only works as
   described when the following is there. If something is missing it
   may be installed without working correctly: documents may open as
   plain text, without TrueType text and emoji, without pictures, or
   not at all. The installer checks these points and tells you what
   it did not find.

   Needed
   - AmigaOS 3.2 or newer (developed and tested on 3.2.3). It has NOT
     been tested on 3.1, 3.5 and 3.9.
   - 68020 or better. It is 68020 code: do NOT install it on a
     68000/68010, it would crash there.
   - Some free memory: the page is drawn into a bitmap of the window's
     size, and pictures are kept in memory while the document is open.

   Needed for the display shown in the feature list
   - utf8rastport.library (tested with 5.1 and 6.1). It is part of
     EmojiGear by krabobmkd (Aminet: text/edit/EmojiGear5.3.lha or
     newer). Without it there
     are no TrueType fonts, no larger headings and no emoji; characters
     outside your 8 bit character set are replaced by similar ones or
     by "?".
   - TrueType fonts. By default the datatype looks for
       FONTS:_ttf/DejaVuSans.ttf        text
       FONTS:_ttf/DejaVuSansMono.ttf    code
       FONTS:_ttf/NotoColorEmoji32.ttf  emoji
     and, if these are missing, for Vera, Liberation Sans, Verdana,
     Arial or Tahoma in FONTS:_ttf/. Other fonts and the size are set
     in ENVARC:DataTypes/markdown.prefs (see markdown.prefs.example).
     No fonts are included. The DejaVu fonts are free
     (https://dejavu-fonts.github.io); for emoji fonts see the EmojiGear
     documentation.
   - picture.datatype 43 or newer and datatypes for the picture formats
     you use (png.datatype and jpeg.datatype of AmigaOS 3.2 are fine).
     Without them a picture shows its description only.
   - A graphics card (RTG: Picasso96 or CyberGraphX) with a 15, 16, 24
     or 32 bit screen is recommended. On screens with 256 colours or
     less the colours are approximated; pictures on such screens have
     NOT been tested.

   Optional
   - openurl.library, to open web links in your browser. Without it a
     click on a web link copies its address to the clipboard.
   - DefIcons (part of AmigaOS 3.2) running, for the icon of .md files.

Installation
   Double-click Install-markdown_dt. It copies
     Classes/DataTypes/markdown.datatype  to SYS:Classes/DataTypes
     Devs/DataTypes/Markdown, Markdown_UTF-8  to DEVS:DataTypes
     Prefs/Env-Archive/Sys/def_markdown.info  to ENVARC:Sys and ENV:Sys
   and, if you agree, adds the type "markdown" to
   ENVARC:deficons.prefs (the original is kept as
   ENVARC:deficons.prefs.before-markdown). Reboot afterwards. The same
   script removes everything again. To install by hand, copy these
   files yourself and reboot; ReadMe.txt has the details.

   Then open Demo/Demo.md.

Known limits
   Printing is not supported. Footnotes are shown as text, <details>
   blocks are always open, pictures inside a line of text and pictures
   from the web show their description only.

Tested on AmigaOS 3.2.3 with WinUAE (68060, UAEGFX) and on an A1200
with PiStorm/Emu68 (68040, RTG 1920x1080).

Freeware. Copyright (C) 2026 Serkan Dursun. You may use and copy this
package freely as long as it is complete and unchanged; no warranty of
any kind. utf8rastport.library and EmojiGear are by krabobmkd and are
not part of this package.

History
1.0  First release.


Contents of util/dtype/markdown_dt.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[Amiga]                   2081    3488  59.7% -lh5- 67d7 Nov 14 17:28 markdown_dt.info
[Amiga]                   4420    9847  44.9% -lh5- 447e Nov 14 17:28 markdown_dt/BeniOku.txt
[Amiga]                   1251    2664  47.0% -lh5- 67e7 Nov 14 17:28 markdown_dt/BeniOku.txt.info
[Amiga]                   2986    4860  61.4% -lh5- bab2 Nov 14 17:28 markdown_dt/C/MDIconType
[Amiga]                  53209   88960  59.8% -lh5- 3d41 Nov 14 17:28 markdown_dt/Classes/DataTypes/markdown.datatype
[Amiga]                   2081    3488  59.7% -lh5- 67d7 Nov 14 17:28 markdown_dt/Demo.info
[Amiga]                   4820    4820 100.0% -lh0- cfc0 Nov 14 17:28 markdown_dt/Demo/badge.png
[Amiga]                  18748   19274  97.3% -lh5- d860 Nov 14 17:28 markdown_dt/Demo/banner.png
[Amiga]                  14428   15010  96.1% -lh5- f8f3 Nov 14 17:28 markdown_dt/Demo/chart.png
[Amiga]                   2860    5506  51.9% -lh5- 0b94 Nov 14 17:28 markdown_dt/Demo/Demo.md
[Amiga]                   1475    2786  52.9% -lh5- 574b Nov 14 17:28 markdown_dt/Demo/Demo.md.info
[Amiga]                  23137   23137 100.0% -lh0- 8dd7 Nov 14 17:28 markdown_dt/Demo/landscape.jpg
[Amiga]                    254     490  51.8% -lh5- d48c Nov 14 17:28 markdown_dt/Demo/Second.md
[Amiga]                   1475    2786  52.9% -lh5- 574b Nov 14 17:28 markdown_dt/Demo/Second.md.info
[Amiga]                    111     136  81.6% -lh5- 07d8 Nov 14 17:28 markdown_dt/Devs/DataTypes/Markdown
[Amiga]                    117     154  76.0% -lh5- 2061 Nov 14 17:28 markdown_dt/Devs/DataTypes/Markdown_UTF-8
[Amiga]                   3888   11994  32.4% -lh5- de66 Nov 14 17:28 markdown_dt/Install-markdown_dt
[Amiga]                   1922    2955  65.0% -lh5- 7308 Nov 14 17:28 markdown_dt/Install-markdown_dt.info
[Amiga]                    510     879  58.0% -lh5- 34df Nov 14 17:28 markdown_dt/markdown.prefs.example
[Amiga]                   1239    2510  49.4% -lh5- 199d Nov 14 17:28 markdown_dt/Prefs/Env-Archive/Sys/def_markdown.info
[Amiga]                   4171    9605  43.4% -lh5- 033b Nov 14 17:28 markdown_dt/ReadMe.txt
[Amiga]                   1251    2664  47.0% -lh5- 67e7 Nov 14 17:28 markdown_dt/ReadMe.txt.info
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        22 files  146434  218013  67.2%            Nov 15 02:36
Page generated in 0.01 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>