8
\$\begingroup\$

When answering question before I always used to use the "Heading" option present on the formatting box. This produces the following markdown:

## Heading ##

However, within the past couple of days my answers have been getting edited to change it to:

# Heading

Along with a comment usually saying something like "Use this format instead".

As far as I know this was never a problem in the past and my original heading even works for the leader boards some questions include.

Has the consensus on what headings to use changed?


My main reason for asking is I've seen a few suggested edits that do this and I'm not sure about whether or not to approve them. And I'd also like to save others the trouble of having to edit my answers.

\$\endgroup\$
  • 10
    \$\begingroup\$ There's no real strict format. I'd highly recommend rejecting the edits to with "doesn't improve" or "clearly conflicts with author's intent" \$\endgroup\$ – Rɪᴋᴇʀ May 17 '17 at 15:20
  • \$\begingroup\$ related \$\endgroup\$ – Rod May 17 '17 at 16:30
14
\$\begingroup\$

The consensus is either # Heading or ## Heading, whichever you prefer.

This previous consensus supports ## Heading, but now-a-days it's pretty common to use # Heading. This answer is an attempt at a new consensus, allowing either format.

If you like the smaller heading better, use that. I'd recommend against the ### Heading, as it's a bit small (and obviously not just **bold**), but that's just my opinion.

Furthermore, suggested edits to do such things should be rejected, unless they add something else. For example, if they add syntax highlighting, or possibly

codeblock formatting 

instead of

backtick

But other than that, they should be rejected with either "Clearly conflicts with author's intent." or "Changes are superfluous".

1 last tip: sometimes, if you prefer the # Heading style, it's better to use ## Heading if the title is too long. This is most common on polyglot and advanced scoring challenges, which can have longer headers (or just long language names).

For example, take this header:

Python, Ruby, Javascript, R, Julia, Octave, Matlab (5 languages), 186 bytes

You can also write it like this, and it doesn't take up two lines:

Python, Ruby, Javascript, R, Julia, Octave, Matlab (5 languages), 186 bytes

\$\endgroup\$
  • \$\begingroup\$ @programmer5000 if the title is too long to fit on one line with # Heading, use ## Heading. \$\endgroup\$ – Rɪᴋᴇʀ May 18 '17 at 16:16
  • 17
    \$\begingroup\$ That's still two lines on my machine. \$\endgroup\$ – isaacg May 19 '17 at 2:18
  • \$\begingroup\$ @isaacg well, that might be time for a triple ### Heading then. \$\endgroup\$ – Rɪᴋᴇʀ May 19 '17 at 2:53
  • 1
    \$\begingroup\$ Still two lines. \$\endgroup\$ – MD XF May 19 '17 at 3:22
  • \$\begingroup\$ @MDXF Triple heading shouldn't be, unless you're using a 1024x??? ancient monitor. \$\endgroup\$ – Erik the Outgolfer May 30 '17 at 15:41
  • \$\begingroup\$ @EriktheOutgolfer No, I mean the third example in this post. ##Python, Ruby, Javascript, R, Julia, Octave, Matlab (5 languages), 186 bytes still takes up two lines on my screen. \$\endgroup\$ – MD XF May 30 '17 at 15:50
  • \$\begingroup\$ The H2 example at the end is still two lines for me (probably because I'm on a 1440x900 screen :P) \$\endgroup\$ – CalculatorFeline May 30 '17 at 21:35
  • \$\begingroup\$ @CalculatorFeline I have the same size, only 1 line for me. \$\endgroup\$ – Rɪᴋᴇʀ May 31 '17 at 17:01
  • \$\begingroup\$ Probably font differences. It's one line with the graduation userscript. \$\endgroup\$ – CalculatorFeline May 31 '17 at 17:02
6
\$\begingroup\$

Since you mentioned answer headers in general as well, use #Language or ##Language like Riker said, but then after that, it is pretty standard to use a format like this, using a comma, strikes, and bytes:

# Language, <s>127</s> <s>98</s> 95 bytes

Like this:

Python 2, 127 98 95 bytes

And if your language is supported for prettify markup, you can use <!-- language: lang-python --> or something similar for syntax highlighting.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .