Links are inserted when copy/pasting action build logs and code with embedded links

未关闭
#49 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
javascript
领域
frontend

调研方向

通过复制工作流代码和一段 Actions build-log 来复现该问题,然后跟踪负责转换带链接文本的 JavaScript 粘贴和剪贴板处理入口。完成的标准是,复制的代码和日志文本不再获得嵌入的 Markdown 链接或被修改的字符。

由索引模型根据 Issue 内容生成。

描述

I was just trying to copy text out of an actions workflow, specifically these lines. Since I'm using OctoLinker the action name is linkified and the text that gets pasted into an issue shows up as:

- name: Set up .NET
        uses: https://github.com/actions/setup-dotnet/tree/v2.0.0v2.0.0
        with:
          dotnet-version: |
            3.1.417
            5.0.406
            6.0.201

instead of

      - name: Set up .NET
        uses: actions/setup-dotnet@v2.0.0
        with:
          dotnet-version: |
            3.1.417
            5.0.406
            6.0.201

Similarly I tried to copy text out of an Actions build log and that's also pasting incorrectly. OctoLinker doesn't run on these pages so the issue isn't related to that like the above one kind of is.

.NET SDKs installed:
  3.1.120 [/usr/share/dotnet/sdk]
  3.1.202 [/usr/share/dotnet/sdk]
  3.1.[30](https://github.com/xt0rted-test/setup-dotnet-test/runs/5973292245?check_suite_focus=true#step:2:30)2 [/usr/share/dotnet/sdk]
  3.1.417 [/usr/share/dotnet/sdk]
  5.0.104 [/usr/share/dotnet/sdk]
  5.0.212 [/usr/share/dotnet/sdk]
  5.0.303 [/usr/share/dotnet/sdk]
  5.0.406 [/usr/share/dotnet/sdk]
  6.0.201 [/usr/share/dotnet/sdk]

In this example the 4th line should actually be:

3.1.302 [/usr/share/dotnet/sdk]
主要语言
JavaScript
星标
234
派生
47
平均合并
1 天 12 小时
30 天内合并 PR
5

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/paste-markdown 的其他 Issue

查看 github/paste-markdown 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。