CPEN 321 Open Source Project
- We added a Google Chrome badge to indicate to the user that their selection contains unrendered Markdown. This was in response to Issue #258.
- Implementation:
- /src/chrome/contentscript.js
- Added
setToggleButtonBadge()
, integrated it into the preexisting background checks
- Added
- /src/chrome/backgroundscript.js
- Added new request action
show-toggle-button-badge
to handle displaying the toggle button
- Added new request action
- /src/common/markdown-here.js
- Refactored common code into
getMarkdownRenderObject()
, createdselectionContainsRenderedMarkdown()
- Refactored common code into
- /src/common/options.html
- Added fields to allow user to enable/disable the new toggle button badge
- /src/common/options.js
- Added logic to deal with user enabling/disabling the toggle button badge
- /src/common/test/markdown-here-test.js
- Created new test suite for our new function
You can see our full pull request at this link: adam-p#319
(Note that our previous pull request is now closed. This is because we were originally pull requesting from master->adam_p. We had to remake a pull request so that we could exclude this README from the pull request)