vnote icon indicating copy to clipboard operation
vnote copied to clipboard

从不同的浏览器上拷贝然后粘贴为makdown时出错

Open jumbojing opened this issue 2 years ago • 2 comments

Describe the bug 粘贴为makdown时出错

To Reproduce Steps to reproduce the behavior:

  1. 我在safari上面复制了github上面的一段文字;
  2. 想在vnote(3.14.0)粘贴为markdown
  3. 无法完全粘贴全部内容

结果:

image

jumbojing avatar Aug 07 '22 15:08 jumbojing

给个复现的原网页?

tamlok avatar Aug 07 '22 18:08 tamlok

@tamlok from Here

First of all, you need to import VizTracer class from the package

from viztracer import VizTracer

You can trace code with with statement

with VizTracer(output_file="optional.json") as tracer:
    # Something happens here

Or you can create a VizTracer object and manually enable/disable the profile using start() and stop() function.

tracer = VizTracer()
tracer.start()
# Something happens here
tracer.stop()
tracer.save() # also takes output_file as an optional argument

jumbojing avatar Aug 08 '22 01:08 jumbojing