In demonstrating one of the gaps of man pages in modern times and likely having hindered the adoption of the Linux kernel’s new mount API, it took more than six years for those system calls to be properly documented within man pages. The Linux “new” mount API was introduced back in mid-2019 with Linux 5.2 and since supported by key file-systems after several years but not until weeks ago was this file descriptor based mount API scoped out within man pages.

The “new” mount API for Linux is a set of system calls like fsopen and fsconfig for offering more flexibility than the Linux kernel’s long-used mount system call that is a one-shot approach compared to this modern multi-step design for better flexibility. In the kernels since Linux 5.2, various file-systems have transitioned to supporting the modern mount API. It was only earlier this year that F2FS added support for it as one of the last major file-systems without it.

  • MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    1
    arrow-down
    4
    ·
    edit-2
    1 day ago

    Missing features in Markdown:

    • description lists (some have them, commonmark doesn’t)
    • image captions & resizing
    • basic richtext like underline without html syntax
    • native vector (svg) handling

    I’m not saying not to use md (vs. asciidoc/tor, restex or orgmode) but to add the features please.

    • linuxPIPEpower@discuss.tchncs.de
      link
      fedilink
      arrow-up
      1
      ·
      15 hours ago

      Someone can correct this but iirc some implementations of markdown have image options like this:

      ![alt text](/path/to/IMG.png|200px "description text")

      Others put the size in { } after the main image item.

      Rich text is contrary to the structural focus of markdown. Why should it be added?

      • MonkderVierte@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        4 hours ago

        Guess we have a semantics problem here. I understand under “rich text” text with formatting, not the long since dead file format. Markup is the language used to add richness to the plain text, no?

        • linuxPIPEpower@discuss.tchncs.de
          link
          fedilink
          arrow-up
          2
          ·
          3 hours ago

          Sorry I was trying to follow your meaning, because the example of absent rich text you gave was underlines. There is already basic text formatting support such as strong, emphasis, headings and links.

          You could style any, all or none of those to have underlining. Whatever chosen rendering, they all have meaning independent from the applied style. What you are asking for is to have something that is purely a display style without any structural value. This is not coming to markdown any time soon. Hardly anyone uses underline as its own thing in html anymore, for good reasons.

          Maybe this article will help to further explain.

          Native SVG handling would be completely out of scope. The point of markdown is that it is supposed to be understandable in its plain text format. SVG is incompatible with that. The closest thing would be like mermaid charts but I think it’s quite a stretch even then.

          I think you should just use HTML, it has a much larger array of tools that would suit your needs. Markdown is purposely constrained because it enables much more portability.

    • onlinepersona@programming.dev
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 day ago

      Description lists?

      Richtext? Like this or this ?

      SVG handling? I’ve never seen a manpage with SVGs nor have I seen a manpage with images, much less image captions.

      • linuxPIPEpower@discuss.tchncs.de
        link
        fedilink
        arrow-up
        1
        ·
        15 hours ago

        That’s not rich text. Rich text is when a format is applied without structural reason.

        You could have a markdown interpreter that displayed **this** *this* or _this_ using any arbitrary format. You could change the color, weight, border, drop shadow, opacity, mouse over effects, font face… Any attribute.

        Lemmy has conventions but all * really means is emphasis.

      • MonkderVierte@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        1 day ago

        Richtext? Like this or this ?

        No, like the mentioned <u>underline</u> (this is how you write it in markdown html).

      • MonkderVierte@lemmy.zip
        link
        fedilink
        arrow-up
        1
        arrow-down
        3
        ·
        edit-2
        1 day ago

        SVG handling? I’ve never seen a manpage with SVG … image captions

        This is from wanting to use markdown for more than tech. documentation, like saving some simple websites.

          • MonkderVierte@lemmy.zip
            link
            fedilink
            arrow-up
            1
            arrow-down
            1
            ·
            edit-2
            4 hours ago

            It’s only formatted text anyway, so why would i want to save it in a hard-to-read format with scripts and inline style noise and with frames and headers and footers in the way even if rendered? I care for the info only, it should look how i as the reader want it to look.

            Typora has a convenient convert-on-paste feature. Sadly, there’s no such tool for asciidoctor and pandoc does noisy convert (lots of artifacts).

            • linuxPIPEpower@discuss.tchncs.de
              link
              fedilink
              arrow-up
              1
              ·
              3 hours ago

              I used to use typora; it does have a really nice convert web->markdown. I think that it is done by some javascript or something because the other tools that have comparable quality I can think of off the top of my head are obsidian, joplin clipper and a couple of firefox extensions. I agree that in my experience pandoc and a couple other cli tools didn’t produce such nice results.

              I also think in all those cases the browser is doing some of the work because it renders the page, discards a lot of irrelevant stuff, then you copy/convert just a selection portion of what’s visible. Whereas if you, for example, grab a raw html page through curl and send it to pandoc, none of that is done. You probably aren’t using Select All when you copy a page to typora, but pandoc would be faced with the entire page. I don’t know if there is a way to access the Reader View from the terminal but it would go a distance to cleaning up your pandoc conversion if you could start from there (for those sites on which it’s available).

              I tried and failed to do the same thing but it’s not markdown’s fault. No matter how many bells and whistles markdown would get, the issue is in the conversion from html part.

              • MonkderVierte@lemmy.zip
                link
                fedilink
                arrow-up
                1
                ·
                1 hour ago

                True, but my points above are things i found lacking in comparison to asciidoctor, while there the desktop tooling is lacking (yes there’s asciidoc.js).