{"action":"created","issue":{"url":"https://api.github.com/repos/jgm/pandoc/issues/168","repository_url":"https://api.github.com/repos/jgm/pandoc","labels_url":"https://api.github.com/repos/jgm/pandoc/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/jgm/pandoc/issues/168/comments","events_url":"https://api.github.com/repos/jgm/pandoc/issues/168/events","html_url":"https://github.com/jgm/pandoc/issues/168","id":1033745,"number":168,"title":"Syntax for divs","user":{"login":"jgm","id":3044,"avatar_url":"https://avatars.githubusercontent.com/u/3044?v=3","gravatar_id":"","url":"https://api.github.com/users/jgm","html_url":"https://github.com/jgm","followers_url":"https://api.github.com/users/jgm/followers","following_url":"https://api.github.com/users/jgm/following{/other_user}","gists_url":"https://api.github.com/users/jgm/gists{/gist_id}","starred_url":"https://api.github.com/users/jgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgm/subscriptions","organizations_url":"https://api.github.com/users/jgm/orgs","repos_url":"https://api.github.com/users/jgm/repos","events_url":"https://api.github.com/users/jgm/events{/privacy}","received_events_url":"https://api.github.com/users/jgm/received_events","type":"User","site_admin":false},"labels":[{"id":113084,"url":"https://api.github.com/repos/jgm/pandoc/labels/enhancement","name":"enhancement","color":"d7e102","default":true}],"state":"open","locked":false,"assignee":{"login":"jgm","id":3044,"avatar_url":"https://avatars.githubusercontent.com/u/3044?v=3","gravatar_id":"","url":"https://api.github.com/users/jgm","html_url":"https://github.com/jgm","followers_url":"https://api.github.com/users/jgm/followers","following_url":"https://api.github.com/users/jgm/following{/other_user}","gists_url":"https://api.github.com/users/jgm/gists{/gist_id}","starred_url":"https://api.github.com/users/jgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgm/subscriptions","organizations_url":"https://api.github.com/users/jgm/orgs","repos_url":"https://api.github.com/users/jgm/repos","events_url":"https://api.github.com/users/jgm/events{/privacy}","received_events_url":"https://api.github.com/users/jgm/received_events","type":"User","site_admin":false},"assignees":[{"login":"jgm","id":3044,"avatar_url":"https://avatars.githubusercontent.com/u/3044?v=3","gravatar_id":"","url":"https://api.github.com/users/jgm","html_url":"https://github.com/jgm","followers_url":"https://api.github.com/users/jgm/followers","following_url":"https://api.github.com/users/jgm/following{/other_user}","gists_url":"https://api.github.com/users/jgm/gists{/gist_id}","starred_url":"https://api.github.com/users/jgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgm/subscriptions","organizations_url":"https://api.github.com/users/jgm/orgs","repos_url":"https://api.github.com/users/jgm/repos","events_url":"https://api.github.com/users/jgm/events{/privacy}","received_events_url":"https://api.github.com/users/jgm/received_events","type":"User","site_admin":false}],"milestone":null,"comments":178,"created_at":"2011-06-10T00:33:54Z","updated_at":"2016-10-29T19:01:25Z","closed_at":null,"body":"<pre>\nI've been missing a way to specify a div markdown\nwithout using HTML tags.  The (relatively) new \ndelimited code block syntax gave me an idea however.\nConsider using a line of four or more periods to\nstart a div:\n\n    Para before div\n\n    ....\n    First para inside div\n\n    Second para inside div\n\n    Third para inside div\n    ....\n\nSince one will often want and need to apply an ID\nand/or class to a div one should be able specify\nthose.  I suggest a CSS-like syntax inside braces\nafter the opening line of periods\n\n    .... {#id .class}\n    div content\n    ....\n\nOne problem would be nested divs.  I suggest marking\nthose by indenting.  A code/pre block containing div\nsyntax would need to be doubly indented, similar to \nsuch blocks inside lists:\n\n    .... {#outer_div}\n    \n    Para of outer div\n\n        .... {#nested_div}\n        \n        Para of nested div.\n\n        A code block illustrating div syntax\n        (a most unusual thing!):\n\n                ....{#example_div}\n                This is how you specify a div\n                ....\n\n        Another para in nested div\n\n        ....\n\n    Another para in outer div\n\n    ....\nmarkdown\nOf course one could mark nested divs by more periods in the\nline (and then at least two more!):\n\n    .... {#outer_div}\n    \n    Para of outer div\n\n    ...... {#nested_div}\n    \n    Para of nested div.\n\n    A code block illustrating div syntax\n    (a most unusual thing!):\n\n        ....{#example_div}\n        This is how you specify a div\n        ....\n\n    Another para in nested div\n\n    ......\n\n    Another para in outer div\n\n    ....\n\n\nBut I think indenting makes things cleaner, making it\neasier to remember closing the divs you have opened, and not \nto close more divs than you have opened.  If you have very \nmany nested divs you should probably pause and consider why \nanyway!\n\nGoogle Code Info:\nIssue #: 195\nAuthor: bpjonsson\nCreated On: 2010-01-07T13:54:47.000Z\nClosed On: \n</pre>\n"},"comment":{"url":"https://api.github.com/repos/jgm/pandoc/issues/comments/257109539","html_url":"https://github.com/jgm/pandoc/issues/168#issuecomment-257109539","issue_url":"https://api.github.com/repos/jgm/pandoc/issues/168","id":257109539,"user":{"login":"ickc","id":10970208,"avatar_url":"https://avatars.githubusercontent.com/u/10970208?v=3","gravatar_id":"","url":"https://api.github.com/users/ickc","html_url":"https://github.com/ickc","followers_url":"https://api.github.com/users/ickc/followers","following_url":"https://api.github.com/users/ickc/following{/other_user}","gists_url":"https://api.github.com/users/ickc/gists{/gist_id}","starred_url":"https://api.github.com/users/ickc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ickc/subscriptions","organizations_url":"https://api.github.com/users/ickc/orgs","repos_url":"https://api.github.com/users/ickc/repos","events_url":"https://api.github.com/users/ickc/events{/privacy}","received_events_url":"https://api.github.com/users/ickc/received_events","type":"User","site_admin":false},"created_at":"2016-10-29T19:01:25Z","updated_at":"2016-10-29T19:01:25Z","body":"Another point about @uvtc's suggestion worth discussing is\r\n\r\n``` markdown\r\n> --- {.baz}\r\n> This is a blockquote (not a\r\n> div), but with class=\"baz\".\r\n```\r\n\r\nI can see it reconciles the need of setting classes on blockquotes. But it breaks the rule of \"any character\". (And it also breaks the possibility of using blockquote syntax as div for markdown editor compatibility.)\r\n\r\nI suggest if we use @uvtc's syntax, the blockquote attributes should be done in other way:\r\n\r\nAs suggested previously:\r\n\r\n```markdown\r\n> {.great}\r\n> Quote of\r\n> the day.\r\n```\r\n\r\nOr, using another character suggested by @uvtc in the illustration:\r\n\r\n```markdown\r\n> +++ {.great}\r\n> Quote of\r\n> the day.\r\n```\r\n\r\nOr, to emphasize it is a quote:\r\n\r\n```markdown\r\n>>> {.great}\r\n> Quote of\r\n> the day.\r\n```\r\n\r\nAnother minor point is, the spaces there should be optional, just like the current blockquote does, right?"}}
{"actor":{"display_login":"ickc"}}