BugMonkey Markdown
BugMonkey customization for FogBugz which allows for Markdown in case editor.
Observe:
Prerequisites
- You need FogBugz.
- You must be using the desktop version of the FogBugz site.
- You need IE9+, FF14+, Chrome 18+, Safari 6+, Opera 15+, or...
- for mobile browser compatibility, see here.
Installation
- Create a new Customization in FogBugz.
- Paste the contents of
dist/bugmonkey-markdown.min.txt
into the customizations editor. - Enable the Customization for yourself.
- Save, refresh a case page, and you should be ready to go.
Usage
Here's an example of altering the CodeMirror CSS:
localStorage['BugMonkey.Markdown.THEME_URL'] = '//cdnjs.cloudflare.com/ajax/libs/codemirror/3.21.0/theme/solarized.min.css';
localStorage['BugMonkey.Markdown.THEME_NAME'] = 'solarized';
Now, next time you refresh, you will use this custom theme.
This behavior is slated to change in v1.2.0
Debugging
Paste dist/bugmonkey-markdown.txt
into the editor instead.
Development
You might want to do this if you hate the CSS I picked, or want some other fancy CodeMirror feature.
- Execute
npm install
- Make edits to any/all of the following:
-
./bugmonkey-markdown.js
-
./bugmonkey-markdown.css
-
./header.txt
-
- Execute
grunt
to outputbugmonkey-markdown.txt
andbugmonkey-markdown.min.txt
into thedist/
directory. - Alternatively, execute
grunt watch
before you start fiddling with files and thedist/*.txt
files will be created automatically. - Paste the contents of one of the files in the
dist/
directory back into FogBugz. Save, refresh, rinse, repeat.
Dependencies
BugMonkey Markdown leverages:
IE9 and IE10 support courtesy Mutation Observers Polyfill from the Dart project.
License
MIT