{"id":17156513,"url":"https://github.com/svivian/q2a-markdown-editor","last_synced_at":"2025-04-13T13:30:51.323Z","repository":{"id":47587513,"uuid":"2215749","full_name":"svivian/q2a-markdown-editor","owner":"svivian","description":"Markdown editor plugin for Question2Answer","archived":false,"fork":false,"pushed_at":"2021-08-23T05:37:23.000Z","size":181,"stargazers_count":55,"open_issues_count":12,"forks_count":24,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-27T04:33:26.244Z","etag":null,"topics":["php","question2answer","question2answer-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/svivian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-08-16T12:58:17.000Z","updated_at":"2022-12-24T17:54:11.000Z","dependencies_parsed_at":"2022-08-23T20:01:06.774Z","dependency_job_id":null,"html_url":"https://github.com/svivian/q2a-markdown-editor","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svivian%2Fq2a-markdown-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svivian%2Fq2a-markdown-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svivian%2Fq2a-markdown-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svivian%2Fq2a-markdown-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svivian","download_url":"https://codeload.github.com/svivian/q2a-markdown-editor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248720965,"owners_count":21151020,"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":["php","question2answer","question2answer-plugin"],"created_at":"2024-10-14T22:06:40.510Z","updated_at":"2025-04-13T13:30:49.001Z","avatar_url":"https://github.com/svivian.png","language":"JavaScript","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=4R5SHBNM3UDLU"],"categories":[],"sub_categories":[],"readme":"Markdown Editor plugin for Question2Answer\n=================================================\n\nThis is an editor plugin for popular open source Q\u0026A platform, [Question2Answer](http://www.question2answer.org). It uses Markdown to format posts, which is a simple text-friendly markup language using for example \\*\\*bold\\*\\* for **bold text** or \\\u003e for quoting sources.\n\nThe plugin uses modified versions of the PageDown scripts (released by Stack Overflow) for the editor and live preview respectively.\n\n\nInstallation\n-------------------------------------------------\n\n1. Download and extract the `markdown-editor` folder to the `qa-plugins` folder in your Q2A installation.\n2. If your site is a different language from English, copy `qa-md-lang-default.php` to the required language code (e.g. `qa-tt-lang-de.php` for German) and edit the phrases for your language.\n3. Log in to your Q2A site as a Super Administrator and head to Admin \u003e Posting.\n4. Set the default editor for questions and answers to 'Markdown Editor'. The editor does also work for comments, but keeping to plain text is recommended.\n\nIn Admin \u003e Plugins, you can set three options:\n\n- \"Don't add CSS inline\" - this will not output the CSS onto the page, to allow putting it in a stylesheet instead which is more efficient. Copy the CSS from `pagedown/wmd.css` to the bottom of your theme's current stylesheet.\n- \"Plaintext comments\" - Sets a post as plaintext when converting answers to comments.\n- \"Use syntax highlighting\" - Integrates [highlight.js](http://softwaremaniacs.org/soft/highlight/en/) for code blocks (including while writing posts). All common programming languages are supported, but you can add more using the [customized download here](http://softwaremaniacs.org/soft/highlight/en/download/). Save the file and overwrite `pagedown/highlight.min.js`. If you ticked the box for CSS above, copy the CSS from `pagedown/highlightjs.css` to the bottom of your theme's current stylesheet.\n\n\nExtra bits\n-------------------------------------------------\n\n**Converting old posts:** If you have been running your Q2A site for a little while, you may wish to convert old content to Markdown. This does not work reliably for HTML content (created via the WYSIWYG editor); it is pretty safe for plain text content, but check your posts afterwards as some formatting may go awry. You can convert text posts automatically using this SQL query:\n\n    UPDATE qa_posts SET format='markdown' WHERE format='' AND type IN ('Q', 'A', 'Q_HIDDEN', 'A_HIDDEN')\n\n(Make sure to change `qa_` above to your installation's table prefix if it is different.)\n\n\nPay What You Like\n-------------------------------------------------\n\nMost of my code is released under the open source GPLv3 license, and provided with a 'Pay What You Like' approach. Feel free to download and modify the plugins/themes to suit your needs, and I hope you value them enough to donate a few dollars.\n\n### [Donate here](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=4R5SHBNM3UDLU)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvivian%2Fq2a-markdown-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvivian%2Fq2a-markdown-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvivian%2Fq2a-markdown-editor/lists"}