{"id":20190247,"url":"https://github.com/imazen/repositext","last_synced_at":"2025-04-10T08:59:06.893Z","repository":{"id":10278729,"uuid":"12394169","full_name":"imazen/repositext","owner":"imazen","description":null,"archived":false,"fork":false,"pushed_at":"2018-01-25T04:40:42.000Z","size":7412,"stargazers_count":4,"open_issues_count":2,"forks_count":2,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-06T01:45:53.788Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imazen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-27T01:44:31.000Z","updated_at":"2017-03-01T20:11:02.000Z","dependencies_parsed_at":"2022-08-31T08:22:10.018Z","dependency_job_id":null,"html_url":"https://github.com/imazen/repositext","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imazen%2Frepositext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imazen%2Frepositext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imazen%2Frepositext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imazen%2Frepositext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imazen","download_url":"https://codeload.github.com/imazen/repositext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248190489,"owners_count":21062280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T03:41:50.816Z","updated_at":"2025-04-10T08:59:06.812Z","avatar_url":"https://github.com/imazen.png","language":"Ruby","funding_links":[],"categories":["Parsers \u0026 Extensions"],"sub_categories":[],"readme":"Repositext Kramdown\n===================\n\nA customized parser/converter for repositext.\n\nThe parser class in `lib/repositext/parser/repositext.rb` contains the\nimplementation of the special repositext.org parser that is based on the\nkramdown parser.\n\nIf a document is parsed with it, the resulting document tree **cannot**\nbe converted by an un-patched converter because of special\nrepositext.org elements.\n\nInstallation (while in development)\n-----------------------------------\n\nFollow these steps to install repositext:\n\n* Install Ruby 2.0 using rbenv or rvm.\n* Install the bundler gem: `gem install bundler`\n* Clone the repository from github.com\n* Switch into the repositext directory: `cd repositext`\n* Install the required gems: `bundle install`\n\nUsage\n-----\n\nUse these commands to perform conversions:\n\n### Convert IDML files to kramdown\n\n    bundle exec batch_import_idml_files_to_at_files '../idml_files/*'\n\n#### File Pattern\n\nYou can use file patterns to select which files you want to convert. You can\nuse all features of [Ruby's Dir.glob method](http://ruby-doc.org/core-2.0.0/Dir.html#method-c-glob).\n\nWhen providing a relative file pattern, the current directory will be used as\nbase directory.\n\n**IMPORTANT NOTE**: When using glob patterns, it is important that you surround\nthe pattern with quotes. Otherwise the shell will evaluate the pattern and you\nwill likely only convert a single file (the first one that matches the pattern).\n\n## Special elements\n\nrepositext-kramdown adds the following elements to kramdown:\n\n* :gap_mark (%, span element, no content)\n* :subtitle_mark (@, span element, no content)\n* :record_mark (block element)\n\n## IDML and IDML story parsers\n\nThere is an IDML file parser in `lib/repositext/parser/idml.rb` and an\nIDML story file parser in `lib/repositext/parser/idml_story.rb`. The\nIDML file parser is not a kramdown parser like the IDML story file\nparser -- it just reads an IDML file, extracts the IDML story files and\nuses the IDML story file parser to parse them.\n\nNote that the IDML story file parser needs to be supplied not with a\nwhole IDML file but just with an IDML story file.\n\n## How to run specs\n\nTo run the entire spec suite:\n\n    bundle exec rake\n\nor to run a single file:\n\n    bundle exec ruby spec/kramdown/parser/idml_story/regression_spec.rb\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimazen%2Frepositext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimazen%2Frepositext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimazen%2Frepositext/lists"}