fogbugz-markdown

Automatically reinterpret comments as markdown.

< Feedback on fogbugz-markdown

Question/comment

§
Posted: 2016-01-05

fogbugz-markdown: two issues/fixes

Hi, I noticed two issues:

  1. 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]+)(?:#.*)$');

  1. 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:

jQuery(".bugevent.detailed .body, .bugevent.detailed .body, .pseudobugevent.detailed .body[style=''], .pseudobugevent.detailed .body[style='']").each(function (i, elem) {

HTH, Ant.

Post reply

Sign in to post a reply.