copycat icon indicating copy to clipboard operation
copycat copied to clipboard

add option for custom context menu

Open Eronana opened this issue 5 years ago • 3 comments

thanks for this extension, it's the best extension used to copy as markdown. so how about add these features:

  • hide context menu
  • only display one item(copy as markdown, copy as html, or other things we can configure) instead of current TWO level menu

Eronana avatar Jul 18 '18 02:07 Eronana

The ability to allow users to customize the menu structure requires a lot of code modification, so these requirements are not implemented for the time being.

BlackGlory avatar Jul 18 '18 14:07 BlackGlory

You need only to modify these 2 lines in turndown.d.ts:

    emDelimiter?: '_'|'*'
    strongDelimiter?: '**'|'__'

Default for Turndown is set to _ for emphasis and ** for bold. Ref.: https://github.com/domchristie/turndown#options

bugsysop avatar Sep 24 '18 10:09 bugsysop

@bugsysop d.ts suffix is a TypeScript type definition file, which does not affect the actual running code. In addition, the issue corresponding to this message seems to be https://github.com/BlackGlory/Copycat/issues/3.

BlackGlory avatar Sep 25 '18 05:09 BlackGlory