11

I'm trying to add the syntax for git pull documentation

But I can't submit to review because I'm getting this error:

enter image description here

I'm pretty sure I have it formatted correctly:

enter image description here

I also tried multiple list items, but same message. What am I doing wrong?

4
  • Have you tried removing all the excess space at the front so it doesn't try to get formatted as a code block inside a list?
    – animuson StaffMod
    Commented Jul 22, 2016 at 3:28
  • @animuson yes, same error message. also note that because of the < symbols it's rendered as an html tag and is invisible. Commented Jul 22, 2016 at 3:29
  • 4
    Tried manually escaping the < and > characters? If it's removing them as invalid HTML then it might be freaking out about that. Not sure why those aren't automatically encoded as I don't believe any actual HTML is valid there? Don't quote me on that.
    – animuson StaffMod
    Commented Jul 22, 2016 at 3:34
  • @animuson yup - that worked, thanks! Commented Jul 22, 2016 at 3:35

1 Answer 1

13

Looks like the problem is the code formatting. Use inline code instead:

- `git pull [options [<repository> [<refspec>...]]`
5
  • I tried many newlines before and after. I also tried 3 spaces at the beginning, same error - if I do 4 it's no longer a list item. I tried at least 100 spaces after the line - still same error message. Commented Jul 22, 2016 at 3:32
  • Got it to go through finally - see edit.
    – Shog9
    Commented Jul 22, 2016 at 3:36
  • ya, thanks! animuson pointed me that way :) Commented Jul 22, 2016 at 3:37
  • or &lt; / &gt; ? Commented Jul 26, 2016 at 12:55
  • 1
    Yeah, that should also work, @Macro.
    – Shog9
    Commented Jul 26, 2016 at 21:38

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