{"id":13785989,"url":"https://github.com/Sirithang/UnityMarkdeepViewer","last_synced_at":"2025-05-11T21:32:28.101Z","repository":{"id":146970676,"uuid":"123172754","full_name":"Sirithang/UnityMarkdeepViewer","owner":"Sirithang","description":"Editor scripts allowing to display Markdown, markdeep and HMTL directly inside the Unity Editor","archived":true,"fork":false,"pushed_at":"2022-04-27T14:00:17.000Z","size":139,"stargazers_count":41,"open_issues_count":1,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-17T22:35:57.750Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/Sirithang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-02-27T18:46:10.000Z","updated_at":"2024-03-17T15:49:47.000Z","dependencies_parsed_at":"2024-01-17T05:13:06.515Z","dependency_job_id":"71a36888-23ac-4d8d-8a66-dd5d01ccd4aa","html_url":"https://github.com/Sirithang/UnityMarkdeepViewer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sirithang%2FUnityMarkdeepViewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sirithang%2FUnityMarkdeepViewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sirithang%2FUnityMarkdeepViewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sirithang%2FUnityMarkdeepViewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sirithang","download_url":"https://codeload.github.com/Sirithang/UnityMarkdeepViewer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253638988,"owners_count":21940434,"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-08-03T19:01:07.713Z","updated_at":"2025-05-11T21:32:23.849Z","avatar_url":"https://github.com/Sirithang.png","language":"C#","readme":"# UnityMarkdeepViewer\n\n# DEPRECATED \n\nThis was using the old Webview in the Unity editor which was removed in more recent version, so this won't work in more\nrecent Unity version. Keeping this here as reference.\n\nFor more recent version of the editor, see this repository https://github.com/UnityGuillaume/MarkdownRenderer that is using\nthe new UIToolkit used by the Untiy Editor to parse and render markdown directly in the Unity Editor UI.\n\n## Readme\n\n**WIP : This is a bit hacky and prototypy**\n\nEditor scripts allowing to display Markdown, Markdeep and HMTL directly inside the Unity Editor\n\nIt use the internal Unity Webview (used for example by the AssetStore or the Collab windows) recreated through reflection.\n\nIt handles :\n\n- HTML files (\\*.html)\n- Markdeep file (\\*.md.html)\n- Markdown file (\\*.md)\n\nRendering is made with [Markdeep](https://casual-effects.com/markdeep/).\n\n## Installation\n\nThere is 2 way to use the tool :\n\n### Multiple files\n\nCopy the MarkdeepViewer folder into your project.\n\n### Single File install\n\nTo make it less invasive and easier to embed in other project, a single file version is available in the root of that project or\nthrough the release of the github page.\n\nJust **copy the MarkdeepViewerSingleFile.cs file into an Editor folder anywhere in your project or package**\n\nThe single file version is just the 2 C# files of the editor window copied into a single one, and the markdeep and css files stored\nas string in that file class.\n\n**At runtime, the tool will create the 3 files in the Library folder so they can be referenced when the tool create the javascript to render**\n\nIt is build through an editor script. The file CreateSingleFileVersion in MarkdeepViewer/Editor take care of creating it through\na menu in the Unity editor.\n\n## Usage\n\nWhen you click on an .html, .md.html, .md file, a button appear on the Inspector to open it in the Markdeep viewer.\nYou can dock that window, and the next file you open through the button will be open in that window instead of a new one.\n\n## Styling\n\n2 css are used by the system : `dark_style.css` and `light_style.css` in the folder `Markdeep/Plugins`\n\n## File format specification\n\nRelative path works. E.g. `[Link to another file](\"../other/files.md\")`\n\n### HTML\n\n- HTML file are displayed as-is.\n- If the HTML file don't have any stylesheet, the default one will be added before displaying\n\n### Markdeep\n\n- Markdeep are all file that finish by \\*.md.html\n- If the markdeep file don't have any stylesheet, the default one will be added before displaying\n- If the Markdeep file don't include the Markdeep `markdeep.min.js` script, it will be added before displaying\n\n### Markdown\n\n- If a markdown file don't have a script tag linking to `markdeep.min.js` it will be injected when the page is displayed\n- If there is no stylesheet linked to the file, the default one will be injected\n\n## Known Issues and Limitations\n\n- Diagrams and files includes in Markdeep don't work, they break rendering of full file. if your file fail to render, check first that you don't have a diagrams or an include.\n\n## TODO and possible improvement\n\n- Making a special marking (e.g. `$mdroot`) in a Markdeep file that link to the local markdeep folder (or the one in Library folder for single file install) so users can include the local offline markdeep\nfile no matter where the rendered file is in the project folder (and support being moved around).\n","funding_links":[],"categories":["Editor Utility"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSirithang%2FUnityMarkdeepViewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSirithang%2FUnityMarkdeepViewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSirithang%2FUnityMarkdeepViewer/lists"}