{"action":"created","issue":{"url":"https://api.github.com/repos/websharks/s2member-kb/issues/234","labels_url":"https://api.github.com/repos/websharks/s2member-kb/issues/234/labels{/name}","comments_url":"https://api.github.com/repos/websharks/s2member-kb/issues/234/comments","events_url":"https://api.github.com/repos/websharks/s2member-kb/issues/234/events","html_url":"https://github.com/websharks/s2member-kb/issues/234","id":94892545,"number":234,"title":"[s2Eot /] Shortcode Documentation","user":{"login":"jaswsinc","id":1563559,"avatar_url":"https://avatars.githubusercontent.com/u/1563559?v=3","gravatar_id":"","url":"https://api.github.com/users/jaswsinc","html_url":"https://github.com/jaswsinc","followers_url":"https://api.github.com/users/jaswsinc/followers","following_url":"https://api.github.com/users/jaswsinc/following{/other_user}","gists_url":"https://api.github.com/users/jaswsinc/gists{/gist_id}","starred_url":"https://api.github.com/users/jaswsinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaswsinc/subscriptions","organizations_url":"https://api.github.com/users/jaswsinc/orgs","repos_url":"https://api.github.com/users/jaswsinc/repos","events_url":"https://api.github.com/users/jaswsinc/events{/privacy}","received_events_url":"https://api.github.com/users/jaswsinc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/websharks/s2member-kb/labels/published","name":"published","color":"009800"},{"url":"https://api.github.com/repos/websharks/s2member-kb/labels/tutorials","name":"tutorials","color":"0052cc"}],"state":"closed","locked":false,"assignee":{"login":"jaswsinc","id":1563559,"avatar_url":"https://avatars.githubusercontent.com/u/1563559?v=3","gravatar_id":"","url":"https://api.github.com/users/jaswsinc","html_url":"https://github.com/jaswsinc","followers_url":"https://api.github.com/users/jaswsinc/followers","following_url":"https://api.github.com/users/jaswsinc/following{/other_user}","gists_url":"https://api.github.com/users/jaswsinc/gists{/gist_id}","starred_url":"https://api.github.com/users/jaswsinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaswsinc/subscriptions","organizations_url":"https://api.github.com/users/jaswsinc/orgs","repos_url":"https://api.github.com/users/jaswsinc/repos","events_url":"https://api.github.com/users/jaswsinc/events{/privacy}","received_events_url":"https://api.github.com/users/jaswsinc/received_events","type":"User","site_admin":false},"milestone":null,"comments":16,"created_at":"2015-07-14T08:19:13Z","updated_at":"2015-07-18T20:47:10Z","closed_at":"2015-07-17T14:17:33Z","body":"---\n##### KB Article Creation Checklist\n\n- [x] Write initial draft for this KB Article; label this issue `draft` and either `questions` or `tutorials`\n- [x] Add [required YAML configuration](https://github.com/websharks/team/wiki/KB-Articles-::-Required-YAML-Configuration)\n- [x] Add Tags for this KB Article to the YAML config (see [YAML Keys (Explained)](https://github.com/websharks/team/wiki/KB-Articles-::-Required-YAML-Configuration#yaml-keys-explained))\n- [x] Edit and finalize draft for publishing (remove `draft` label, add `draft-finalized` label)\n- [x] Assign Issue to yourself and [create Markdown file](https://github.com/websharks/team/wiki/KB-Articles-::-Creating-the-Markdown-File) (remove `draft-finalized` label, add `pending`)\n- [x] Project Lead: Review and Publish KB Article (remove `pending` label, add `published` label)\n\n##### Additional TODOs\n\n_Additional TODO list items go here._\n\n---\n\n### KB Article Published @ s2member.com<br />:page_with_curl: See: [\\[s2Eot /\\] Shortcode Documentation](http://s2member.com/kb-article/s2eot-shortcode-documentation/)\n[:octocat: View Markdown File](https://github.com/websharks/s2member-kb/blob/master/tutorials/2015/234-s2eot-shortcode-documentation.md) | [:pencil2: Edit Markdown File](https://github.com/websharks/s2member-kb/edit/master/tutorials/2015/234-s2eot-shortcode-documentation.md)\n\n---\n\n"},"comment":{"url":"https://api.github.com/repos/websharks/s2member-kb/issues/comments/122596384","html_url":"https://github.com/websharks/s2member-kb/issues/234#issuecomment-122596384","issue_url":"https://api.github.com/repos/websharks/s2member-kb/issues/234","id":122596384,"user":{"login":"raamdev","id":53005,"avatar_url":"https://avatars.githubusercontent.com/u/53005?v=3","gravatar_id":"","url":"https://api.github.com/users/raamdev","html_url":"https://github.com/raamdev","followers_url":"https://api.github.com/users/raamdev/followers","following_url":"https://api.github.com/users/raamdev/following{/other_user}","gists_url":"https://api.github.com/users/raamdev/gists{/gist_id}","starred_url":"https://api.github.com/users/raamdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raamdev/subscriptions","organizations_url":"https://api.github.com/users/raamdev/orgs","repos_url":"https://api.github.com/users/raamdev/repos","events_url":"https://api.github.com/users/raamdev/events{/privacy}","received_events_url":"https://api.github.com/users/raamdev/received_events","type":"User","site_admin":false},"created_at":"2015-07-18T20:47:10Z","updated_at":"2015-07-18T20:47:10Z","body":"> `past_format=\"<strong class=\"s2member-sc-eot-label -past\">Access Expired:</strong><span class=\"s2member-sc-eot-date -past\">%%date%%</span>\"`\r\n\r\nIf that's the intended usage, how are all those double-quotes inside the shortcode attribute escaped? Would I need to escape them inside the shortcode attribute myself?\r\n\r\n---\r\n\r\nThe way I _thought_ it worked was that we automatically added HTML markup around `%%date%%` .\r\n\r\nSo if you entered `past_format=\"Your access expired on %%date%%\"`, the following would be the output:\r\n\r\n```\r\n<span class=\"s2member-sc-eot-label -past\">Your access expired on </span><span class=\"s2member-sc-eot-date -past\">%%date%%</span>\r\n```\r\n\r\nOr if you entered `past_format=\"Your access expired on %%date%%. Please renew today!\"`, the following would be the output:\r\n\r\n```\r\n<span class=\"s2member-sc-eot-label -past\">Your access expired on </span><span class=\"s2member-sc-eot-date -past\">%%date%%</span><span class=\"s2member-sc-eot-label -past\">. Please renew today!</span>\r\n```\r\n\r\nNotice how I'm using a `span` tag in both places, not a `strong` tag. \r\n\r\n---\r\n\r\nIf you don't want to change the behavior at all, here's what I suggest for fixing the KB Article to clarify things (I'm still curious how double-quotes inside a shortcode attribute are handled...):\r\n\r\n- Don't put a line break after `Access Expires:</strong>`, as having the code on separate lines doesn't make sense at all if you're showing an example of something that goes into a shortcode attribute (which a user would be expected to write on a single line)\r\n- Disable syntax highlighting; syntax highlighting separates the markup from the text and make it confusing as to which is being referred to\r\n- Mention just above the example that \"HTML can be used inside the shortcode attribute, as shown below.\""}}