7 ms·
Markdown, Asciidoc, or reStructuredText – a tale of docs-as-code
- mooreds 4y agoAs I said on Twitter, this was a great article, but needs to mention Jekyll, which was one of the OG static site generators. There are others such as eleventy as well. I was kinda shocked that asciidoc came up as the recommended documentation solution; we use it and were looking to possibly make a move because of some of the warts (includes are great, but then make updating doc more complex, no one line ifdef check, feels a bit aged). Anyone have any other suggestions we should look at?
- macintux 4y agoThe creator of Pandoc is creating a markup language worth looking at: https://djot.net/ https://djot.net/
- fluidcruft 4y agoTwo things on my radar to check out are MyST markdown and quarto.
- subpixel 4y agoStripe’s Markdoc (markdoc.dev) is very promising. Anything AsciiDoc can do, Markdoc can be extended to do, from variables through includes. React or HTML output. AST transforms or functions. Upcoming editor support etc. The community isn’t there yet but I predict it will show up.
- keybored 4y agoPoints to the Markdown family for using mostly nice syntax. I mean the basics like lists, links, and headings look fine (I can do without the underlined headings or whatever they are called though). Markdown is nice for readmes and simple notes. Usage beyond that is not quite questionable to but debatable. Asciidoc seems to have a solid backend. But it seems to have a problem with nesting. Nesting things should be tablestakes in a markup language. I don’t know much about RestructuredText (no, I won’t play these silly free-caps games) but it doesn’t look that nice to me for whatever reason. It looks the closest to regular markup to me except they have replaced things like brackets with backticks. And finally I am glad that I never have to use some Wiki lightweight markup variant with silly syntax like using X numbers of apostrophes for emphasis or whatever.
- LukeShu 4y agoFor a long time reStructuredText was "the Python thing", the way POD is "the Perl thing", where it's the "only" choice in that ecosystem, but you didn't really see it outside of that ecosystem. But nowadays (thanks to Sphinx?) reStructuredText is also used for big systems-y projects, including the Linux kernel docs and Envoy proxy.
- kzrdude 4y agorST is nice for making complete documents, but for smaller things it just is not practical. For one-off things (like github comments) or smaller wikis, markdown is just more practical. rST has bigger reliance on a mildly smart editor than markdown has, just to handle indentation. The upside of rST is that it's just more complete, it has more document elements available. Markdown is often written without thought to having a readable plain text document, but rST is often very readable in plain text too.
- ilyt 4y agoMarkdown have a bit of fragmentation problem. CommonMark and Github variant have been nice steps forward, but for code I'd like to have some more extensions rolled in as another standard. For code docs in particular ability to just embed text diagrams would be great, you can hack around that with PlantUML but then you need to have stuff that supports it...
- NoThisIsMe 4y agoWhat is "regular markup"?
- keybored 4y agoMarkup not of the lightweight kind.
- euroderf 4y agoDoes any of them make it easy to (a) define & use footnotes, and then (b) render the footnotes flexibly as a default, for example as either (b.1) end-of-page (in page-oriented physical formats) or (b.2) in Tufte-style side notes (in unpaged online formats) ?
- deathanatos 4y agoThe "insanity" of the section characters isn't really … it's just that the adorning character doesn't matter so much. (Other than it has to be the same.) The picture-of-a-tweet nails it, but the author misses the point. It's not "we have Python devs" it's "reST has the best syntax for extensibility": if you need to start doing some sort of macro or pre-processing, reST's syntax is cut out for that. M↓ is not; you'll need to do it out of band. Or, to put it differently, reST's directives offer extension hooks. > You’ll need to set up an identity and access management (IAM) service in front of your static website. Unless IAM is your jam, it’s better to avail of a managed service to tackle it. We throw ours behind Github, I think using https://github.com/oauth2-proxy/oauth2-proxy https://github.com/oauth2-proxy/oauth2-proxy ; then Github is our IAM. Honestly, while I think reST has a more cleanly thought out syntax that will allow you to grow the complex use cases docs will inevitably hit … the tooling just isn't as good, IMO. Markdown parsers are prolific … reST … not so much, particularly outside of Python. (And IMO, docutils in Python is not very easy to use if you want fine control over parsing & output. It's there, but just hard to take advantage of.) M↓'s syntax is also somewhat limiting: there's just not a lot it can do. (Admonitions, in particular, are useful in tech docs and missing.) There's always HTML, … but that's just not the same. (I've no experience w/ AsciiDoc.)
- IshKebab 4y agoMy experience of Docutils is that it is a half finished undocumented mess. It doesn't really matter how good RST's syntax is.
- bonzini 4y agodocutils is a mess, sphinx tooling and extensibility are much better though.
- WorldMaker 4y agoFrom my experience: after a few years working with it I finally realized it's extremely well documented once you understand which document you are looking for and some of the underlying abstraction patterns that reST uses. It's just a badly organized mess that seems unorganized or half-finished at casual glance, because so much of the documentation was almost entirely written for the audience of reST's implementors and extenders, and even should be user-facing stuff like "how to write in reST" assumes low level familiarity with its abstractions and have read the documentation in a different order. (Which also is why it can often look "half-finished", it's assuming you already know the correct order to read it in, which isn't necessarily the order it presents itself as.) reST actually has a strong enough spec document that you could reimplement it some other language that isn't Python and assume a base level compatibility (very contrary to Markdown's case and many flavors), and the reason there aren't more reST engines/libraries in other languages is as much the network effects of the existing ecosystem around Python-based extensions (and Sphinx) more than anything technical or missing in the specs.
- benatkin 4y agoMarkdown can simply be code - the fenced code blocks are quite enjoyable to work with. RMarkdown is this. Before I learned of RMarkdown I had written something to extract code blocks with filenames that are visible in the rendered page (since hiding it at the end of the first triple backquote codefence isn't great for visibility). I'm currently working on a JavaScript-centered notebook tool (rather than Python centered or R centered as two great ones are). https://github.com/ResourcesCo/macchiato/blob/main/scripts/md_unpack_simple.md https://github.com/ResourcesCo/macchiato/blob/main/scripts/m... https://github.com/ResourcesCo/notebook https://github.com/ResourcesCo/notebook Markdown nested lists could also be used as an alternative to JSON and YAML - they would appear as bullets in a rendered markdown file. I didn't know about this until I started experimenting but inline code blocks can contain backquotes just like fenced code blocks can contain triple backquotes, by wrapping them in a greater number of backquotes.
- euroderf 4y ago> Markdown can simply be code - the fenced code blocks are quite enjoyable to work with. Hmm, if a Markdown file can have code interspersed, then can't a code file have Markdown interspersed, and the two interpretations of the file could in some sense be symmetric - and equally valid ? Obv such "interspersions" exist in certain implementations, but I don't think such symmetries do, nor is there anything like a "standard" for it. Literate programming using Markdown - who'da thunk it ? Someone pls correct me if I'm OTL.
- cratermoon 4y agoIsn't that essentially what Jupyter does?
- benatkin 4y agoIt's in JSON at least by default. Here's an example: https://github.com/tensorflow/examples/blob/master/courses/udacity_deep_learning/1_notmnist.ipynb?short_path=bb28f96 https://github.com/tensorflow/examples/blob/master/courses/u...
- spaniard89277 4y agoI would say HTML?
- MrVandemar 4y agoI don't know why people are so keen to put distance between themselves and HTML. HTML is a rich, expressive markup language with strong accessibility features that is also consistent and simple. I write in HTML the way some people write in Markdown using the abbreviated (but valid) syntax. <!DOCTYPE html> <title>The Great Novel of All Time</title> <h1>Chapter One</h1> <p>It was a dark and stormy night. <p>Suddenly a shot rang out! <p>A door slammed. The maid screamed. If you avoid closing things that don't need to be closed, and use whitespace (and a syntax-highlighting editor) it's easy to write and easy to eye-parse. No includes though.
- tadfisher 4y agoWhitespace collapsing just sucks, though. The SGML roots hamper HTML's ergonomics for human writers.
- spaniard89277 4y ago* {white-space: pre-wrap;} or pre-line, depending on what you want. Done.
- breck 4y agoWhy not all 3 at once: https://scroll.pub/public/blog/indented-heredocs.html https://scroll.pub/public/blog/indented-heredocs.html
- macintux 4y agoRelated recent discussion: Elements Of a Great Markup Language https://news.ycombinator.com/item?id=33381373 https://news.ycombinator.com/item?id=33381373
- jszymborski 4y agoI love Asciidoc, but the tooling is pretty crummy. It's not much fun to install and manage asciidoctor if you aren't into the ruby space, and pandoc doesn't take asciidoc as an input. Its the first I'm hearing of Antora though, so I'll be sure to check that out.
- Tomte 4y agoMaybe a solution: AsciidoctorJ is an official JVM port (using JRuby). You just get the jar file and execute it.
- geokon 4y agoYou can actually used it interactively from the repl in clojure as well if you need access to the api. I forget why, but it made using the reveal.js output much easier than getting the extension working through the command line
- e12e 4y agoI thought the answer always was "pandoc" when the question was (un)structured markup...
- kevin_thibedeau 4y agoPandoc weds you to their particular flavor of Markdown as it's the basis for the internal data representation. All other formats it supports are limited to what its MD can do.
- innocentoldguy 4y agoAntora is pretty nice for large documentation projects. For smaller projects, you may want to try 11ty and the Asciidoctor plugin: https://github.com/saneef/eleventy-plugin-asciidoc https://github.com/saneef/eleventy-plugin-asciidoc
- pbronez 4y agoI agree. Every time I think about picking a markup language, I wind up wanting to use Asciidoc but then getting frustrated by the tooling. Maybe there's a great static site generator written in GO with strong Asciidoc support?? Antora is new to me as well, will review.
- e12e 4y agoSurely, these are also markdown headers? Big === Small ----- I actually prefer those when editing in a text editor - like a nicely formatted plain text email.
- giobox 4y agoI also prefer to use these in place of # and ## for <h1>/<h2> - IMO it makes document cleaner and easier for reader to parse when markdown files are viewed as plain-text.
- innocentoldguy 4y agoI've done a lot of research and testing with Markdown, Asciidoc, and reStructuredText to see which would work best for my company's documentation needs. We ended up going with Asciidoc and Antora for the following reasons. Asciidoc: * Almost as simple as Markdown. * Less convoluted than reStructuredText. * Excellent support for complex tables, captions, callouts, etc. * We prefer Asciidocs table structure to Markdown's since it is easier to create and maintain. * Excellent documentation. Antora: * Comes with a default template, which makes building prototypes easier. * Ability to pull from multiple git repositories. * Native Asciidoc support. * Fast compile times. * Good documentation. Based on our research, I even migrated my personal 11ty sites from Markdown to Asciidoc and have been quite happy with it.
- packetlost 4y agoI'm primarily a Python dev. I *hate* RST. I despise that it's really the only viable choice for docstrings in Python and wish for something rustdoc-like to be ported to Python
- BiteCode_dev 4y agoSame. Good news though, the jupyter devs created myst (https://myst-parser.readthedocs.io/en/latest/syntax/syntax.html#syntax-core https://myst-parser.readthedocs.io/en/latest/syntax/syntax.h...), a superset of markdown that has almost all the features of rst, and can embed rst when it falls short. And there is a plugin to use it with sphinx. It can even reside in a project that started with rst files, both format can coexist. With this and sphinx-autoreload, writing doc is so much better.
- wbamberg 4y agoLast year we changed the source format for MDN from some extremely messy, WYSIWYG-authored HTML to something that would be easier for authors to use. We considered Asciidoc and reST, and despite its limitations, we chose Markdown (GFM specifically) for two reasons: 1. We get a _lot_ of casual contributors to MDN: about 180-200 unique contributors/month, most of whom we never see again. Almost all of them can contribute much more easily with Markdown than with anything else. Many of these people are unlikely to put even an half an hour into learning a new syntax. 2. Markdown has great tooling support. For example, if we want to run Prettier over our embedded code samples, it's really easy if we are in Markdown. If we are in Markdown we will get nice formatting just about everywhere, including GitHub of course and most people's editors. One thing that made the choice easier for us is that MDN's a very mature doc site, so we had a very good idea of which Markdown limitations were likely to be a problem for us. If you're interested, we blogged about this project: https://openwebdocs.org/content/posts/markdown-conversion/ https://openwebdocs.org/content/posts/markdown-conversion/.
- BiteCode_dev 4y agoYou made the right choice, rst is not user friendly, even for tech savvy people. I'll take the opportunity to do a shameless plug for the amazing "Markedly Structured Text", or MyST, a markdown flavor that is both easy to write like markdown, and expressive like rst. Basically, if you know markdown, you can write decent MyST already. In fact, any markdown is valid MyST and .md is a valid file extension for MyST. Once you want more, the syntax offers richer construct, but still easy enough to use. Check it out: https://myst-parser.readthedocs.io/en/latest/syntax/syntax.html#syntax-core https://myst-parser.readthedocs.io/en/latest/syntax/syntax.h... I wanted to love asciidoc because the format rocks, but it never took off and the tooling is still lacking. MyST piggy back on markdown ecosystem, this is less of a problem. Also, the devs behind it also have a very good track record at creating a good FOSS ecosystem.
- mdaniel 4y agohttps://myst-parser.readthedocs.io/en/latest/syntax/syntax.html#show-backticks-inside-raw-markdown-blocks https://myst-parser.readthedocs.io/en/latest/syntax/syntax.h... is excellent, and one of my major pain points. I usually give up and just use ` when I need to talk about backticking in markdown but that idea is much, much better but I think https://myst-parser.readthedocs.io/en/latest/syntax/syntax.html#comments https://myst-parser.readthedocs.io/en/latest/syntax/syntax.h... is misguided; AFAIK <!-- commentary --> is legal in markdown and far less likely to surprise someone, both with an abnormal comment character as well as the forced block break
- all2 4y agoIs it worth mentioning org-mode [0] and Racket's documentation system Scribble [1]. Docs as code and the tangle functionality in org-mode's Babel seem to fit right together. I am only familiar with Scribble by name. [0] https://orgmode.org/manual/Working-with-Source-Code.html https://orgmode.org/manual/Working-with-Source-Code.html [1] https://docs.racket-lang.org/scribble/how-to-doc.html#%28part._.Showing_.Racket_.Examples%29 https://docs.racket-lang.org/scribble/how-to-doc.html#%28par...
- russellbeattie 4y agoWikipedia has a nice summary of the various "lightweight markup languages", including a comparison of syntax, and how each one converts into HTML. [1] As I wrote last week in a post that got flamed to pure carbon here on HN, the amount of man hours lost avoiding HTML is beyond comprehension. All of these languages are seriously flawed half-baked solutions to a problem that's already been solved. 1. https://en.m.wikipedia.org/wiki/Lightweight_markup_language https://en.m.wikipedia.org/wiki/Lightweight_markup_language
- taink 4y ago> All of these languages are seriously flawed half-baked solutions to a problem that's already been solved. I tend to think so aswell but there is a big exception: code highlighting. Having a no-js solution to code highlighting implies having a build step to handle just that (unless you actually do it yourself while writing the docs, which would be insane). I haven't spent a lot of time researching it, but I have yet to find a tool as simple to use as e.g. Pygments or Chroma (with Sphinx and Hugo, respectively). What would you recommend?
- russellbeattie 4y agoJust treat HTML like any other markup text. Markdown doesn't concern itself with images, CSS or syntax highlighting either, why does HTML have to? Since Markdown requires a build step, there's no reason to dismiss the idea for HTML. The big difference is that HTML is simply more flexible. In both cases you need to add some sort of markup to identify the code, right? In HTML it looks like: <code class="js-syntax"> let a = "foo"; </code> And Markdown looks like: ```js let a = "foo"; ``` But in HTML, you have a bunch of options built into the file itself: A WYSIWYG editor could add the syntax highlighting before saving, a build step could add in the appropriate styles before publishing, or a JS script could be added to the page and the browser could deal with it. A Markdown file only has one option: Here's your blob of code in plain text, go find some library to convert it. HTML is just a text document that happens to have had 30 years of work put into its spec and millions of man-hours put into optimizing its Object Model and parsing engine. It can be as simple as bog-standard Markdown output, or contain all the meta data needed without relying on custom tags and other hacks.
- addisonj 4y agoI have spent a lot of time looking in this space recently for helping to revamp documentation and I really really have fallen in love with Markdoc. Markdoc just hits the sweet spot of being super easy to get started with but elegantly extensible that makes it scale. I think the OP here simplifies a bit though of what Markdoc is. While it is pretty simple to integrate into a next.js site for a SSG doc site, it is more of a library that can be integrated into almost any site or rendering framework. In some ways, this is the biggest "challenge" of Markdoc right now. It isn't focused on a polished out-of-the-box experience like Docusaurus or MKDocs, but is instead more of a DIY tool. That said though, what is there is really great. With the ability to create custom tags easily and then the ability to analyze and transform an AST in a simple, but easy to understand way, I think markdoc is actually a great option for more than just building a doc site, but as a more general purpose tool for authoring any text-heavy content. With Markdoc, I have built: * a higher level utility for creating a "library" of content with consistent ids for stable and validated links * a validation library to ensure that doc structures follows best practices like having metadata tags in the frontmatter, properly nests headers and doesn't skip H3s, etc * an integration for authoring and reusing doc content in spectacle[0] presentations * have a clear direction of how to "scale" docs-as-code as we were struggling to do that with a simple, flat file of markdown files I have started to toy with the idea of a more general purpose CMS built around markdoc... but in general, a really great tool and kudos to stripe team for building it :) 0 - https://formidable.com/open-source/spectacle/ https://formidable.com/open-source/spectacle/
- ComputerGuru 4y agoAll I know is that you would have to be out of your mind to use rST where you cannot nest inline markup. You can't have inline code with a link in it. How crazy is that? Yes, it's extensible. But I don't want to write a role just to add bold to a reference!
- boxed 4y agoWe have reached stage 6 in iommi: docs from tests. The docs are written as strings in a special tests directory, with special markup to mark code that is not included in the output, and special code for generating (at test-time) and creating inline iframes for results where applicable. Code examples in docs that aren't executed will very often be wrong. That's just a fact of life. So we execute them all.
- pie_flavor 4y agoOne of my favorite features about Rust: this is the default for all documentation comments, and thus for auto-generated API docs.
- boxed 4y agoThis documentation page: https://docs.iommi.rocks/en/latest/forms.html https://docs.iommi.rocks/en/latest/forms.html is generated from this pytest source: https://github.com/TriOptima/iommi/blob/master/docs/test_doc_forms.py https://github.com/TriOptima/iommi/blob/master/docs/test_doc... Is that how rust documentation works?
- pie_flavor 4y agoThe meaning is the same; the syntax is different. All triple-backtick codeblocks in doc comments, unless annotated 'ignore', are run as tests when you run `cargo test`. So from this file[0], this doc page[1] is generated. And there's more flexibility than 'run or ignore' too, e.g. one on that page is marked ```compile_fail,E0277 to fail the test if it compiles or has a different compilation error than expected. And then every code block known to be runnable has a Run button you can click to open the snippet in the Rust Playground. These are API docs, but mdBook[2], which generates documentation that looks like this[3], has a test command which checks the code blocks the same way. [0]: https://doc.rust-lang.org/stable/src/alloc/string.rs.html#76 https://doc.rust-lang.org/stable/src/alloc/string.rs.html#76 [1]: https://doc.rust-lang.org/stable/std/string/struct.String.html https://doc.rust-lang.org/stable/std/string/struct.String.ht... [2]: https://rust-lang.github.io/mdBook/ https://rust-lang.github.io/mdBook/ [3]: https://doc.rust-lang.org/book/ https://doc.rust-lang.org/book/
- runningmike 4y agoFalse choices imho: nowadays just combine markdown, rst and living code in notebooks using the great Jupyter book system. It is build on sphinx but resolved crucial friction points by creating MyST markdown. Brilliant and simple to use. And it is FOSS. Check https://jupyterbook.org/en/stable/intro.html https://jupyterbook.org/en/stable/intro.html
- thangalin 4y ago> Most folks mention that Markdown is not suitable for serious documentation projects. PDFs I've written in Markdown and typeset using ConTeXt: * https://pdfhost.io/v/4FeAGGasj_SepiSolar_Highlevel_Software_Design https://pdfhost.io/v/4FeAGGasj_SepiSolar_Highlevel_Software_... * https://pdfhost.io/v/mhw8jCJzw_autnoma https://pdfhost.io/v/mhw8jCJzw_autnoma * https://dave.autonoma.ca/blog/2020/04/28/typesetting-markdown-part-8/jekyll-hyde.pdf https://dave.autonoma.ca/blog/2020/04/28/typesetting-markdow... * https://impacts.to/downloads/lowres/impacts.pdf https://impacts.to/downloads/lowres/impacts.pdf I think Markdown can be used in serious documentation projects. I am biased, given that I've been working on my free and open source, cross-platform Markdown editor for several years: https://github.com/DaveJarvis/keenwrite/blob/master/docs/screenshots.md https://github.com/DaveJarvis/keenwrite/blob/master/docs/scr...
- PaulWaldman 4y agoThese look great! Were these generated with KeenWrite? I've been generating PDF documentation with Obsidian. The challange is when a document will have multi, non-technical, owners. Invariably the "solution" is to open the PDF in Word.
- thangalin 4y ago> These look great! Were these generated with KeenWrite? Thank you! My sci-fi story, autónoma, is the reason I started to work on KeenWrite, and can be fully generated from within the app. The others could be edited in KeenWrite, but there'd probably need to be some work done to get the HTML/CSS preview panel to display the various annotated sections correctly. Speech bubbles (::: bubbletx and ::: bubblerx), for example, currently work in KeenWrite, but the spectrographic lines in the Impacts Project would need to have special CSS written to render correctly in the preview. > The challange is when a document will have multi, non-technical, owners. Invariably the "solution" is to open the PDF in Word. Teaching people to separate content from presentation takes a lot of effort. That's also a process problem. You could ask people to provide feedback by adding notes into the PDF, rather than editing it directly. At some point it'd be nice to see real-time collaboration added to KeenWrite, which would go a little ways to helping solve multiple users editing a single document: https://github.com/DaveJarvis/keenwrite/issues/120 https://github.com/DaveJarvis/keenwrite/issues/120
- billforsternz 4y agoI found the article to be rather superficial, for example; "The original version of Markdown by John Gruber doesn’t specify the syntax unambiguously. For example, it doesn’t have table formatting." Table formatting is an example of a missing feature in a deliberately minimalist specification. Or possibly a feature that is handled elsewhere in the markdown "stack" (by html). So if the syntax is indeed not specified unambiguously (facts not in evidence?) then this isn't a good way of demonstrating that.
- somat 4y agoMarkdown is pretty great, I would even say the idea is genius. however markdown is a terrible markup language, it completely fails to add any sort of semantic meaning to the text. So people keep trying to add the semantic bits onto markdown, a process which I would argue destroys the genius of markdown in the first place. Markdown is intended to be a nice looking text document. with strict limits on the format so that it can be transformed into a nice looking typeset document. If your base text document does not look great, you are doing markdown wrong. You would be better off with an actual markup language. This is also why I think markdown editors are wrong. again the whole point of markdown is to have a great looking text document, a text editor is perfect for this, any other specialized editor will produce a bad looking document.
- cratermoon 4y agoI would accept any of those instead of the steaming pile of Word docs full of screenshots, bloated PowerPoint presentations, PDFs and various other proprietary formats we have at my current job. On the flip side, the stuff in the pile mostly wasn't authored by technical writers. The people who used tabs and blank lines for formatting and boldface+font size changes for section heads would be probably just create the same kind of semantic messes, but with the added bonus of having a BOM marker at the head of the document and CRLF line endings.
- saltymimir 4y agoIn my (admittedly) brief experience dabbling with asciidoc, I really don't like the opinionated approach on how styles should be injected to the generated HTML output. Say that I generate a table using asciidoc's built-in syntax, the output will always generate HTML elements with the CSS classes already defined: <table class="tableblock frame-all grid-all stretch"> <colgroup> <col style="width: 50%;"> <col style="width: 50%;"> </colgroup> <thead> <tr> <th class="tableblock halign-left valign-top">Column heading 1</th> <th class="tableblock halign-left valign-top">Column heading 2</th> </tr> </thead> <tbody> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">Column 1, row 1</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">Column 2, row 1</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">Column 1, row 2</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">Column 2, row 2</p></td> </tr> </tbody> </table> For me, this output is needlessly verbose for a setup that uses nothing but default flags. Worse, it doesn't provide much of a leeway to change the classes or even let me use some other ways to style the elements. I prefer markdown's (and markdoc's) approach to styling, in that it doesn't really try to define any. My take on this is that stylings of the output should be be coupled with the toolings, as opposed to being bolted into the language standards. edit: formatting
- mk321 4y agoWhat about MDX? https://ghostinspector.com/blog/rebuilding-jekyll-website-next-js-theme-ui/ https://ghostinspector.com/blog/rebuilding-jekyll-website-ne...
- gravypod 4y ago(Opinions are my own) > GFM is, by far, the most popular flavor of Markdown. It is very sad because gfm is essentially "done" evolving. There's no desire from people I've spoken with to improve the implementation or add new features. For example: Multiline tables. > Many tech companies love the rich ecosystem of Remark to transform Markdown with plugins. Still, extendability is the subject where Markdown scores the lowest. The state of the world here is quite painful. I'd also like to say a prayer for anyone else out there writing custom extensions to cmark-gfm in c. > reStructuredText offers a number of useful directives out-of-the-box. For example, admonitions (“safety messages” or “hazard statements”) can appear in rST like this... We've been able to implement this as an extension in cmark-gfm and hoedown. It is quite painful but it is doable. Markdown is just as extendable if you have control of all of the parsers and rendering code for your organization. This is no small feat.
- kjkjadksj 4y agoOnce you learn a language like markdown, why even bother with the markup? You know what denotes a header or whatever in the source. You might as well just write in plain text and not bother with the markup at that point once you’ve set up these formatting guidelines for yourself. Plain text readmes worked for like 50 years so far, they seem fine.
- mumumu 4y agoMarkdown is great. But it doesn't generate semantic HTML. The code span (the ticks) became code in HTML, a lot of times it should be samp, kbd, var. Also definition list. People often use h5. You can use html for both in markdown thought.
- laacz 4y agoSpeculation. Eventually any text-based markup language, as it gets more complicated, will go full circle to the WYSIWYG or other authoring tools, spawning new plaintext formats with a new promise to be the ones.
- MilStdJunkie 4y agoI tend to agree with the author's sentiment re: Asciidoc, but that is a subjective impression, driven by my industry and the requirements it imposes. Here. Let me tell you a story. Some years ago, Leadership in <COMPANY REDACTED> decided to stop paying for the S1000D[1] software. This would make the publications group effectively homeless. The objective of this tactic was to force a move to the PDM system's tech writing system, which had previously been rejected by more or less everyone. I put out a plan[2] to keep the S1000D architecture (filenames, books, links, etc) but use lightweight markup and open standards from the programming industry, to do the actual writing. Which lightweight markup language? I needed the following: * Transclusion, need to bring in files (data modules) from a centralized publication module * Partial Transclusion, need to be able to bring in part of another file, what would be called CIRs in S1000D * Conditional content, usable inline, so that a step or a figure could be toggled on and off depending on a condition set in the Publication Module. This emulates Applicability in S1000D. * Complex print output * Nice-to-haves: an AST that maps to a legacy format aka DocBook/DITA/S1000D/MIL-STD-38784/etc; publishing pipelines capable of weird crap like complex front matter, TOC, indices, header/footer/margin running content; a singular standard that had some life in it I took pretty much every lightweight markup variant out for a spin with a test migration and publish, on my own time, nights and weekends. I found that there was a Markdown variant that could almost do everything I wanted, but it had a dependency on a document processor. ReST functionality similarly depended on notebooks and Sphinx. LaTeX HTML pipelines were a bit janky and hard to set up on Windows. Neither really tied to a legacy XML format, which limited round-tripping with something as insane as S1000D. And the print options for both ReST and MD were not where I needed them, particularly for tables, but also for running content. Asciidoc came the closest to checking off all the boxes for me. Anyway, it happened, it worked, I did it. But it hit business process problems. Stuff that would have hit any new instance of a pubs too. Like "we don't actually know which plane parts can work with each other" or "SMEs will never ever ever do a review in a text editor . . or electronically . . or in anything but a dead tree" or "a few writers don't know what the scroll wheel on the mouse does"[3] or . . eh, take your pick. I ate my own gun, though, and left. They're still using it - and probably still cursing my name - to this day. But that had been one of my big goals[4]: S1000D architecture on lightweight markup. So. Lightweight markup. I haven't continued to shop around, and I probably should. For one, I'm of the growing opinion that inline conditional content is a mistake as a general design, and that the conditionals should probably live in the processing layer. That's a big chunk of the requirement covered by Asciidoc's `include` directive. For another, I won't deny that the Markdown ecosystem is about 100x the Asciidoc ecosystem, due to the much greater dev count with the JS ecosystem vs the Ruby ecosystem. Some of the toys in Markdownland are worth the move all by themselves. And round tripping S1000D? You can't even round trip S1000D with itself. Then again, there's so many damn MD variants. . [1] XML vocabulary for documentation of mil/aero systems. Think DITA but a million times more complicated. And a new Issue every two years, without any commonality in the scope. [2] This was a mistake, as I made lasting enemies of the PDM boosters, who counted some executives among them. I would have been better off keeping my mouth shut and letting the whole thing sink into the ocean. [3] And had no interest in finding out, either. "You're trying to turn us into programmers, with this git and text stuff!". No, no I am not, and if you ever want to work outside this sector you'll want to learn what git is. [4] Should probably mention that annual per seat license costs for the big S100D solutions were pushing past 30k, with reviewer licenses lagging not far behind that. Not including the setup costs, or the consultants that will have to fly down for every tweak and button. I could not, for the life of me, figure out how anyone manages to pay for that in avionics, where the margins are razor thin. Turns out they don't, they just deeply discount their products so the OEM can "show them how it's done". Effectively they're paying their suppliers with dollars that can only be spent with the OEM.
- armandino 4y agoWhen I started an open source project, I spent quite a bit of time researching various documentation options. Initially I went with AsciiDoc, but later switched to MkDocs with the Material theme. I really like MkDocs. It is easy to set up (everyone has python installed), has a lot of features and configuration options. The Material theme looks awesome out of the box. I didn't have to mess with CSS. It's definitely worth a try as it is very quick to set up.