{"action":"created","issue":{"url":"https://api.github.com/repos/jgm/pandoc/issues/4942","repository_url":"https://api.github.com/repos/jgm/pandoc","labels_url":"https://api.github.com/repos/jgm/pandoc/issues/4942/labels{/name}","comments_url":"https://api.github.com/repos/jgm/pandoc/issues/4942/comments","events_url":"https://api.github.com/repos/jgm/pandoc/issues/4942/events","html_url":"https://github.com/jgm/pandoc/issues/4942","id":365493134,"node_id":"MDU6SXNzdWUzNjU0OTMxMzQ=","number":4942,"title":"Possibility to retain some classes in translation","user":{"login":"robinsdg","id":34273341,"node_id":"MDQ6VXNlcjM0MjczMzQx","avatar_url":"https://avatars2.githubusercontent.com/u/34273341?v=4","gravatar_id":"","url":"https://api.github.com/users/robinsdg","html_url":"https://github.com/robinsdg","followers_url":"https://api.github.com/users/robinsdg/followers","following_url":"https://api.github.com/users/robinsdg/following{/other_user}","gists_url":"https://api.github.com/users/robinsdg/gists{/gist_id}","starred_url":"https://api.github.com/users/robinsdg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robinsdg/subscriptions","organizations_url":"https://api.github.com/users/robinsdg/orgs","repos_url":"https://api.github.com/users/robinsdg/repos","events_url":"https://api.github.com/users/robinsdg/events{/privacy}","received_events_url":"https://api.github.com/users/robinsdg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-01T14:38:57Z","updated_at":"2018-10-02T08:36:28Z","closed_at":null,"author_association":"NONE","body":"In the process of converting HTML or Markdown to ICML, I’d love the possibility to allow/force a class through the translation process. As it is, HTML → ICML removes all classes and a lot of element distinction, and this makes it impossible to have, for example, an article lede – it’s an element that never made it into HTML, and now I usually either include the `.lede` class, or put it inside `<article><header>`. But both of these methods are lossy, and I lose the distinction that I’d like.\r\n\r\nSo is there a reasonable feature request in, say, retaining classes between formats that allow them? In Kramdown there is, for example, the `:refdef:` _attribute list definition_, in HTML you can create classes at will, and in InDesign a paragraph style could reflect the base element with a modifier (for example, `Paragraph / Lede`). This means it could translate back and forth with relative predictability.\r\n\r\nOf course, it would break HTML as an input format if all transformations would retain every class, so perhaps it could be implemented as an opt-in flag, perhaps even with a whitelist to ensure that you know what you’re asking for. Maybe this is not as simple as I’m making it sound, but it would certainly extend the usefulness of the ICML writer, and could have value for others."},"comment":{"url":"https://api.github.com/repos/jgm/pandoc/issues/comments/426193973","html_url":"https://github.com/jgm/pandoc/issues/4942#issuecomment-426193973","issue_url":"https://api.github.com/repos/jgm/pandoc/issues/4942","id":426193973,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjE5Mzk3Mw==","user":{"login":"robinsdg","id":34273341,"node_id":"MDQ6VXNlcjM0MjczMzQx","avatar_url":"https://avatars2.githubusercontent.com/u/34273341?v=4","gravatar_id":"","url":"https://api.github.com/users/robinsdg","html_url":"https://github.com/robinsdg","followers_url":"https://api.github.com/users/robinsdg/followers","following_url":"https://api.github.com/users/robinsdg/following{/other_user}","gists_url":"https://api.github.com/users/robinsdg/gists{/gist_id}","starred_url":"https://api.github.com/users/robinsdg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robinsdg/subscriptions","organizations_url":"https://api.github.com/users/robinsdg/orgs","repos_url":"https://api.github.com/users/robinsdg/repos","events_url":"https://api.github.com/users/robinsdg/events{/privacy}","received_events_url":"https://api.github.com/users/robinsdg/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T08:36:28Z","updated_at":"2018-10-02T08:36:28Z","author_association":"NONE","body":"@jgm That makes sense. Same with @mb21 – that sounds like a more robust, more opt-in level of solution. I like your proposal from the thread in #2106 – what would you advise I look into here? I don’t write Lua, and the ICML format is quite verbose and picky (like all XML)."}}
{"actor":{"display_login":"robinsdg"}}