3 ms·
This is exactly what I do for my website - I write articles directly in HTML code, not Markdown or something else that gets translated to HTML. I draft my arti
by nayuki 6y ago
This is exactly what I do for my website - I write articles directly in HTML code, not Markdown or something else that gets translated to HTML.
I draft my articles in plain text or in a WYSIWYG editor, without markup. After I'm satisfied with the content, I go and manually wrap the text in the appropriate markup tags. This includes both inline tags such as <strong>, <code>, <var>, <abbr>, as well as block tags such as <h2>, <p>, <ul>, <li>, <table>, etc.
The major reason I use HTML is because I want to use the full palette of HTML features. I don't want to figure out how to use <dl>/<dt>/<dd>/<thead>/<th> and nested lists in Markdown for example. And if I needed to use attributes like <span lang="ja" class="animate">, then any syntax other than HTML offers no simplification anyhow.
- theandrewbailey 6y agoI used to write my site the same way, but I eventually got tired with inserting tags (and closing tags) in my text. Why type more than I need to (and possibly forgetting things) when Markdown can do it for me, and passes any embedded or customized HTML tags, too?
- nayuki 6y agoI don't speak for everyone as situations differ. In my case, I'm not just writing long-form English prose, but I write technical articles that need stuff like <var>/<sup>/<sub>/<code>/<abbr>, decent control over block structure, custom-styled content, and lightly interactive content. You'd have browse my website to see examples of my existing work and why raw HTML works much better for me than Markdown/AsciiDoc/troff/etc.