{"action":"created","issue":{"url":"https://api.github.com/repos/middleman/middleman-syntax/issues/62","repository_url":"https://api.github.com/repos/middleman/middleman-syntax","labels_url":"https://api.github.com/repos/middleman/middleman-syntax/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/middleman/middleman-syntax/issues/62/comments","events_url":"https://api.github.com/repos/middleman/middleman-syntax/issues/62/events","html_url":"https://github.com/middleman/middleman-syntax/issues/62","id":125889873,"number":62,"title":"How to disable line numbers on specific code block?","user":{"login":"tuomasj","id":24655,"avatar_url":"https://avatars.githubusercontent.com/u/24655?v=3","gravatar_id":"","url":"https://api.github.com/users/tuomasj","html_url":"https://github.com/tuomasj","followers_url":"https://api.github.com/users/tuomasj/followers","following_url":"https://api.github.com/users/tuomasj/following{/other_user}","gists_url":"https://api.github.com/users/tuomasj/gists{/gist_id}","starred_url":"https://api.github.com/users/tuomasj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuomasj/subscriptions","organizations_url":"https://api.github.com/users/tuomasj/orgs","repos_url":"https://api.github.com/users/tuomasj/repos","events_url":"https://api.github.com/users/tuomasj/events{/privacy}","received_events_url":"https://api.github.com/users/tuomasj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-11T07:50:57Z","updated_at":"2016-02-20T23:07:22Z","closed_at":null,"body":"Hi,\r\n\r\nIs there a way to disable line numbers on specific code block? Generally, I want to have line numbers on my code blocks but there are occasions where I would like to disable line numbers on specific code block.\r\n\r\nI'm using markdown with fenced code blocks.\r\n\r\n```ruby\r\n# config.rb\r\nset :markdown, :fenced_code_blocks => true, :smartypants => true\r\n```\r\n\r\nThis is a markdown code block with ruby with line numbers, just for an example:\r\n\r\n    ```ruby\r\n    # hello.rb\r\n    def hello\r\n      puts \"hello\"\r\n    end\r\n    ```\r\n\r\nThe end result is a code block with line numbers:\r\n\r\n```ruby\r\n1  # hello.rb\r\n2  def hello\r\n3    puts \"hello\"\r\n4  end\r\n```\r\n\r\nThis is a markdown code block where I would like to disable line numbers:\r\n\r\nThis is just an imaginary example, there is no ```nolinenumbers``` syntax.\r\n\r\n    ```nolinenumbers\r\n    middleman init MY_PROJECT\r\n    bundle exec middleman serve\r\n    ```\r\n\r\nThe end result would be a code block without line numbers:\r\n```\r\nmiddleman init MY_PROJECT\r\nbundle exec middleman serve\r\n```\r\n\r\nIs there an option or parameter that would handle this?"},"comment":{"url":"https://api.github.com/repos/middleman/middleman-syntax/issues/comments/186698419","html_url":"https://github.com/middleman/middleman-syntax/issues/62#issuecomment-186698419","issue_url":"https://api.github.com/repos/middleman/middleman-syntax/issues/62","id":186698419,"user":{"login":"tuomasj","id":24655,"avatar_url":"https://avatars.githubusercontent.com/u/24655?v=3","gravatar_id":"","url":"https://api.github.com/users/tuomasj","html_url":"https://github.com/tuomasj","followers_url":"https://api.github.com/users/tuomasj/followers","following_url":"https://api.github.com/users/tuomasj/following{/other_user}","gists_url":"https://api.github.com/users/tuomasj/gists{/gist_id}","starred_url":"https://api.github.com/users/tuomasj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuomasj/subscriptions","organizations_url":"https://api.github.com/users/tuomasj/orgs","repos_url":"https://api.github.com/users/tuomasj/repos","events_url":"https://api.github.com/users/tuomasj/events{/privacy}","received_events_url":"https://api.github.com/users/tuomasj/received_events","type":"User","site_admin":false},"created_at":"2016-02-20T23:07:21Z","updated_at":"2016-02-20T23:07:21Z","body":"```ruby?line_numbers=false\r\nputs \"Look ma, no line numbers parameter is working now!\"\r\n```\r\n\r\nHere is the commit for working version with Redcarpet: https://github.com/tuomasj/middleman-syntax/commit/3d19e5b544648eddf86ae27324fa7fc1a2edba4a\r\n\r\nWhen using redcarpet this language parameter approach works, but Kramdown handles the language parameter differently. Any suggestions what would be the best approach?\r\n\r\n"}}