Markdown (.md) datatype for Multiview
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 621 from 2004/4/15
    Ok, I have the same problem on Mos.
    I need to do some debugging, because it works on Linux/MacOs and it is valgrind free.
    So it might be some problem with the SDK/Compiler.

    [ Edited by eliot 31.01.2025 - 11:16 ]
    regards
    eliot
  • »31.01.25 - 11:15
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 3146 from 2003/3/5
    From: Canada
    Quote:

    So it might be some problem with the SDK/Compiler.


    Doubt it. Is that a libnix or ixemul binary? For libnix, you set the stack size like:

    unsigned long __stack = (2 * 1024 * 1024);
  • »31.01.25 - 14:20
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 621 from 2004/4/15
    I will have a try!
    regards
    eliot
  • »31.01.25 - 15:13
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 621 from 2004/4/15
    Ok, it's now working:
    md2html.lha

    If it is usable for you I will also upload it to morpohos-storage.
    regards
    eliot
  • »31.01.25 - 15:55
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Papiosaur
    Posts: 2294 from 2003/4/10
    From: France
    Thanks for the new exe. Just tested but unfortunally there are problems in the conversion with MD tested (https://github.com/samuilivanov/cpp-cdogs-sdl/blob/master/README.md)

    But there is a big problem here, if a MD file is not writed correctly, there is "bugs" during conversion...

    Is there a complete MD file to test with all possible correct syntaxes to see if the HTML conversion is correct?
  • »31.01.25 - 16:11
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 621 from 2004/4/15
    Sorry, I did not had any time to check the README.md you pointed to.
    But I added a Makefile for MorphOS native builds to the repository.
    You can now compile it directly on MorphOS and have a look into the code if you like.


    [ Edited by eliot 01.02.2025 - 13:46 ]
    regards
    eliot
  • »01.02.25 - 13:46
    Profile
  • Moderator
    Kronos
    Posts: 2362 from 2003/2/24
    Quote:

    Papiosaur wrote:

    A strange thing, if i compile without -noixemul (via cmake) all work fine, i obtain the lib and the exe and the exe work.




    Well guess what "-noixemul" means no IX (POSIX/UNIX) emulation which results in the linker complaining about those POSIX functions used but not provided.

    Now most of these have native Amiga/MorphOS counterparts which can be used instead, but since you didn't provide the actual linker error we can't even guess of which those would be.
  • »01.02.25 - 17:58
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 621 from 2004/4/15
    https://github.com/samuilivanov/cpp-cdogs-sdl/blob/6bcfaf4cc7b4a138cf33fb9792150576a2be5e2c/README.md

    works here with maddy.
    regards
    eliot
  • »01.02.25 - 19:35
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 621 from 2004/4/15
    cmark.lha with -noixemul
    regards
    eliot
  • »01.02.25 - 19:51
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 621 from 2004/4/15
    Sorry, I did not use the Makefile.
    But you can build it on your own with cmake:

    Code:

    git clone https://github.com/commonmark/cmark.git
    cd cmark
    makedir build
    cd build
    cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=-noixemul ../
    cmake --build . --target cmark_exe --config Release
    ...
    src/cmark --version
    cmark 0.31.1 - CommonMark converter
    (C) 2014-2016 John MacFarlane
    ...


    That's all you need to do.

    [ Edited by eliot 02.02.2025 - 07:07 ]
    regards
    eliot
  • »02.02.25 - 06:58
    Profile