When viewing a specific case edit in FogBugz there is a fragment in the URL that fogbugz-markdown does not understand, e.g.: .../default.asp?29263#BugEvent.170361. The regex for linkBugRegExp can be updated to handle this:
var linkBugRegExp = new RegExp('^([a-z0-9]{1,12}://' + stringEscapeForRegExp(window.location.hostname) + '/)?/?(default\.asp)?\?([0-9]+)(?:#.*)$');
When a specific case edit has been revised FogBugz adds an empty style="" attribute to the body div which throws off the jQuery tag selection. The jQuery tag selector can be updated to handle this:
fogbugz-markdown: two issues/fixes
Hi, I noticed two issues:
.../default.asp?29263#BugEvent.170361
. The regex for linkBugRegExp can be updated to handle this:var linkBugRegExp = new RegExp('^([a-z0-9]{1,12}://' + stringEscapeForRegExp(window.location.hostname) + '/)?/?(default\.asp)?\?([0-9]+)(?:#.*)$');
jQuery(".bugevent.detailed .body, .bugevent.detailed .body, .pseudobugevent.detailed .body[style=''], .pseudobugevent.detailed .body[style='']").each(function (i, elem) {
HTH, Ant.