home.social

#commonmark — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #commonmark, aggregated by home.social.

fetched live
  1. @debacle @cable_braids @concretedog @rpimag Formally, you're right.

    Practically, very wrong in my point of view.

    Unfortunately.

    There's no #Markdown, there are a few dozens. Only very few tool stick to any specific #MD standard such as #CommonMark. Most advanced MD tools (#Obsidian, #logseq, ...) introduce all sorts of new non-standard syntax elements with add-ons, making it even harder to reuse data.

    #Orgdown is much much more standardized although not formally as it's original syntax has many elements already. You can expect any org file working in any org tool (#Emacs being only one of many). You can't do that with MD.

    gitlab.com/publicvoit/orgdown is a first step for introducing different support levels for the syntax. So far, it hasn't been a success story I have to admit. However, it's still the most promising approach so far as I know of.

    In parallel, there's some activity with formally defining org syntax, I've linked it at the orgdown pages.

    HTH

    #LML #PIM #standardization

  2. has horrible edge cases and despite the valiant effort of , the dialects seem to diverge and multiply over time. I consider switching my personal stuff to where possible: djot.net/

    Ideas:
    - Stop working on github.com/karlb/smu and maintain either github.com/karlb/cdjot or github.com/karlb/minipandoc instead
    - Use github.com/karlb/gemtext.lua to generate (for instead of the unmaintained github.com/karlb/md2gemini

    Thoughts?

  3. 🥳 New Kitten¹ release!

    Implemented workaround:

    There is a bug in the CommonMark spec that results in preformatted code with empty lines nested in an HTML node not rendering correctly.²

    In Kitten, this previously threw an error (see #294³ and also #318⁴).

    Kitten now works around the issue in its own parser.

    Full change log: codeberg.org/kitten/app/src/br

    Enjoy!

    :kitten:💕

    ¹ kitten.small-web.org
    ² github.com/commonmark/commonma
    ³ codeberg.org/kitten/app/issues
    ⁴ codeberg.org/kitten/app/issues

    #Kitten #KittenRelease #SmallWeb #SmallTech #CommonMark #spec #bug #workaround #Markdown #web #dev #NodeJS

  4. I just learned that #commonmark treats a tab indentation as 4 spaces worth. Which leads to very weird results when spaced and tabs are combined, e.g. to align with long enumeration markers (numbers above 10 or 100 even) or blockquote markers.

    Oh my.

  5. RE: graz.social/@publicvoit/115875

    I really do like how #SilverBullet is explaining the consequences of using their version of #Markdown on silverbullet.md/Markdown (#CommonMark).

    With statements like that, people learn about the consequences of using that tool.

    They can either accept this or think about the negative effects before investing too much energy and data.

    I really urge any (#MD-)tool to include such a warning statement on their project page. It's for the benefit of your users.

    One of the reasons why I most probably would recommend switching to SilverBullet if you - for some reason - can't use #orgmode with #Emacs which is IMO the optimum tool for many set of requirements: karl-voit.at/2021/01/18/tool-c

    I'll migrate my wife's #PKM from #logseq (recent changes are a no-go to me) to SilverBullet or preferably Emacs. My upcoming #GLT26 Org-mode workshop (no recording) will tell her.

    #PIM #publicvoit

  6. Why #Markdown's emphasis syntax (**) fails outside of Western languages: A deep dive into #CommonMark's “delimiter run” flaws and their impact on #CJK users.

    A must-read for anyone interested in #internationalization and the future of Markdown:

    https://hackers.pub/@yurume/019b912a-cc3b-7e45-9227-d08f0d1eafe8

  7. One Open-source Project Daily

    Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed

    https://github.com/markdown-it/markdown-it

    #1ospd #opensource #commonmark #javascript #markdown

  8. and its variants, like , allow to span setext-style header across multiple lines:

    Line one
    and two
    --------

    Note that this allows to insert line breaks in headings

    The Hobbit\
    or\
    There and Back Again
    ==================

  9. Line breaks within a paragraph are treated as spaces in Markdown. However, this gives bad results in East Asian languages, where spaces between words are unusual. Use

    pandoc -f markdown+east_asian_line_breaks

    to ensure that line breaks between East Asian wide characters get ignored.

    The extension also works with (commonmark), GitHub Flavored Markdown (gfm), and pandoc's CommonMark extension (commonmark_x).

  10. CommonMark?

    I think I found the right way to make a title ...

    It took a while, though. Whew!

    #formatting #commonmark

  11. Just discovered the interactive #Markdown tutorial from #Commonmark: commonmark.org/help/ What a great resource!

    (Discovered it through #Jupyter, where they have embedded this into the help menu.)

  12. Just ran into a basic flaw in the commonmark spec/parser.

    github.com/commonmark/commonma

    Going to try and work around it in Kitten as I’m using Markdown-it, which implements the commonmark spec, and exhibits the same behaviour.

    (This is going to delay the next release as I’m considering it a blocker.)

    #Markdown #commonMark #parsing #bug

  13. #Markdown Is a Disaster: Why and What to Do Instead
    karl-voit.at/2025/08/17/Markdo

    Here's my article where I summarize the subtle and no so subtle downsides when you choose Markdown for your information instead of a different markup syntax that doesn't come with all the downsides of #MD.

    #publicvoit #orgdown #orgmode #LML #pandoc #rst #restructuredtext #asciidoc #Wikitext #BBCode #Creole #Crossmark #Djot #CommonMark #lockin

  14. Package Manager for Markdown

    I'm working on a project that is intended to encourage folk to make markdown text files which can be bundled together in different bundles of text files using a package manager.

    Question for coders; Which package manager would you suggest I use?

    Main criterias (in order) are:

    1. Easy for someone with basic command line skills to edit the file and update version numbers and add additional packages.

    2. All being equal, more commonly and easy to setup is preferred.

    #Markdown #CommonMark #PackageManager #Programming #Dev
    #NPM #RubyGems #Cargo #PickingAMastodonInstance
    #Ruby #Python #Rust #Javascript #NodeJs #Lisp #CommonGuide

  15. Questo sito contiene un utile guida con esercizi interattivi per imparare il #Markdown:

    commonmark.org/

    Rettifico come da commenti: in realtà è il sito ufficiale del #CommonMark, una sua possibile standardizzazione. Infatti ne esistono molte varianti.

    #CodiceSegreto #Informatica #Tecnologia

  16. Ja, das gefällt mir schon besser.
    #CommonMark / #ShowDown ist schlank, lässt sich gut in #Moodle verwenden und produziert einen style-baren HTML-Code.

    Was müsste man tun, damit das die hakelige Markdown-Implementierung offiziell ersetzen kann? Immerhin funktioniert ShowDown auch serverseitig. 🤔

    Was mir jetzt noch fehlt, ist ein "Präsentationsmodus" für das Textfeld. ...
    Vorerst wird das wohl nichts mehr, aber LisScript und Cryptpad können es ja immerhin auch, also sollte da doch irgendow ein Weg sein.

  17. #LiaScript möchte mit seinem zentralen Interpreter offenbar weg von #LMS wie #Moodle und sieht sich selbst als "Open-courSe" -System, das per iframe oder SCORM eingebunden werden kann.

    Die #Markdown - Quelldateien liegen dabei bei Github, Dropbox oder Nextcloud.

    Ein Moodle-LiaScript-Plugin dagegen gibt es nicht. 🤔 Schade.

    Dann bleibt also noch der handgemachte Weg über Javascript:

    - #CryptPad Presentation / Slides lassen sich themen, und dies basiert auf #CodeMirror, was noch nach Arbeit aussieht. codemirror.net/5/mode/markdown

    - #CommonMark ist standardisiertes Markdown, und mit #ShowDown immerhin einbettbar. demo.showdownjs.com/

  18. If you're thinking of using any other form of #markup than #Commonmark then please don't.
    commonmark.org/

  19. Thanks to everyone who recommended #CommonMark - it's really cool!

    If you're able to help me with this small config issue, I'd be eternally grateful.

    github.com/thephpleague/common

    #PHP

  20. normally doesn't produce that syntax when writing Markdown, so here's a for that:

    CodeBlock = function (cb)
    local lang = cb.classes:remove(1)
    if lang then
    local mdcode = pandoc.write(pandoc.Pandoc{cb}, 'markdown')
    return pandoc.RawBlock(
    'markdown',
    mdcode:gsub('^```+', '%1 ' .. lang)
    )
    end
    end

  21. syntax tip for code block attributes, yielding the best rendering results with both pandoc and on platforms such as , , etc:

    ``` lua {#my-id .another-class}
    io.stdout:write('hi!')
    ```

    The curly-braces syntax for attributes is ignored when read as , the Markdown variant used by most platforms. The above ensures that syntax highlighting still works with CommonMark, and that the other attributes get respected when converting with .

  22. Support for #CommonMark alert-boxes was added in pandoc 3.1.10.

    > [!INFO]
    > This is an informational message.

    Note, however, that writer (i.e., rendering) support for this is limited, and that the `alert` extension works with CommonMark, but not with pandoc-flavored Markdown.

    The syntax has been made popular by GitHub: docs.github.com/en/get-started

  23. I'm still not out of the rabbit hole of searching for an #OpenSource #PersonalKnowledgeManagement software. 🐰

    I'm gonna give a second try to @zettlr tomorrow! Their docs are *surprisingly* user-friendly and they claim to stick to the pure #CommonMark where probable. It's all the while being nice to researchers with citing, inline usage of #TeXLaTeX, #MermaidJS, and pop-over #footnotes. Provision of the simple #PDF export and #Pandoc customization are welcome, too!

    But, to be fair, I may be overexaggerating how good #Zettlr is because of my recent disgust with #VendorLocking. In fact, almost anything that closely follows the common spec and is #FreeSoftware might suffice already. Having something as advanced and closer to the roots is certainly refreshing!

    #Markdown #zettelkasten #authoring #Zettlr #ReferenceManager #ReferenceManagers #PKM #NoteTaking #NoteTakingApp #NoteTakingApps #KaTeX #frontmatter #Obsidian #Logseq #Anytype #Notion #VendorLock #VendorLockIn #FOSS #FLOSS

  24. @nixCraft Saying "GTFO" to pretty much every note-taking application that keeps adding its own stuff that's hard to overwrite, navigate and, worst of all, not compliant with #CommonMark, making viewing experience increasingly awful in programs from KWrite down to vim.

    Sometimes, I have to wonder if an app like Logseq wants to justify its own 16th derivative standard for #Markdown, while keeping you locked-in to ecosystem of its maintainer. Sure, the intentions were bright, but after many years of no progress and no transparency you'd probably feel a bit uncomfortable with this grey box.

Share on Mastodon

Enter the server where you have an account.