-
Notifications
You must be signed in to change notification settings - Fork 22.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert HTTP header overview tables to Markdown tables #7890
Comments
There are always going to be tables in MDN that need to stay as HTML for one reason or another. So if we're considering using a macro only to "keep the same look and feel"[1] as the current tables, we can achieve the same effect by just keeping it as HTML. The real benefit of generating tables from data is that authors don't have to be concerned with the presentation of it, and the data is potentially readable by other applications (as for BCD). About whether to use front matter or refer to another source, I think:
Sometimes representing this stuff as data is hard though. In this case I worry about the value of "CORS-safelisted request header". I don't know this content at all really, but if there are lots of possible values for this item, then things get ugly. We have this situation in the CSS data in mdn/data, with "Applies to": there are IIRC about 330 different values for this item, some of which get names like [1] If "look and feel" refers to structural features of the tables, like having a header col, then fair enough, it is a Markdown-relevant issue, but if it refers to the styles, we should ask "if the |
As:
I'm leaning towards a solution inside the article. As you said, creating a macro doesn't bring much and there are drawbacks (it makes it cumbersome to edit), I think 1. is leading right now. |
It has been three years and it seems nothing will be done. We have many HTML tables in MDN and it doesn't seem very beneficial to convert them to MD (e.g. HTML technical summaries, learning prerequisites...). Instead of keeping it open, I'm going to close it until next time someone feels strongly enough (and it should be in the discussions repo). |
We are in the process of migrating HTTP to Markdown (#7536 and #7853). Tables in MD are less flexible than in HTML.
In particular, these kinds of tables can't be translated in MD, as they don't have a header row:
As they are common, we would like to convert them to Markdown.
I see the following alternatives:
Or we keep the same look and feel, by generating it using a macro. Here the question is really: Where do we store the information?
{{HTTPHeaderOverview}}
that reads the data from there.cc-ing a few people that had opinions in the past on this kind of questions: @Rumyra @sideshowbarker @peterbe @Elchi3 @wbamberg @hamishwillee (but feel free to chime in anyway)
MDN URL: https://developer.mozilla.org/en-US/docs/Web/HTTP
The text was updated successfully, but these errors were encountered: