Code Monkey home page Code Monkey logo

lctt-helper's Issues

代码处理

代码格式为

<pre>
<code>
code here
</code>
</pre>

才会被解析

生成md 的时候自动添加小尾巴

--------------------------------------------------------------------------------

via: 网址

作者:[ ][a]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)

本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux**](https://linux.cn/) 荣誉推出

[a]:

新选题工具需求征集

如果寒假不犯懒的话,我会着手开始写新的 LCTT 选题工具。
如果大家有什么新的需求,请在本 issue 下评论。

标题级别从 ### 开始

大标题 用# 或者 ====== 都行
但是,小标题需要从 ### 开始,除非标题级别太多了

选题与qq群、微信群联动

选题成功之后可以自动向群里推送消息,或者提供一个模块将原文推送到群。
考虑和微信机器人、qq机器人合作。

生成的链接在 github 上面无法解析

比如

[Download Chapeau 24][12]
[12]:[https://sourceforge.net/projects/chapeau/files/releases/Chapeau_24_x86-64.iso/download]

必须改成

[12]:https://sourceforge.net/projects/chapeau/files/releases/Chapeau_24_x86-64.iso/download

才能显示成链接

智能抓取内容

  • 检测源是否可用;
  • 每天最多获取的内容数目以及每个源获取的数目;
  • 根据最热度还是最新来衡量是否抓取;
  • 智能分类抓取;

差不多就这些,每条需求都可以细做;

代码块内不要增加格式

个别情况下,网页的代码块会存在黑体和斜体或者链接这种情况,但是用```CODE```这种就要将内部 CODE 完全当成代码,不支持 MD 的。此外 `` 这种也是。

h1标签处理方式

目前的处理是所有的H1都使用===来处理。

应有判断,是否为首个,首个使用===,其他使用#

自动插入作者介绍

现在的作者介绍很多都是重复的,可以提供一个选项插入已经翻译好的某个作者简介;这同时也意味着要求维护一个库保存翻译过的作者简介。

页尾签名档

页尾的“作者”、“译者”和“校对”三行不用空行,这MD 里面显示三行,实际 HTML 显示一行正好。

rss支持

支持将原文、译文导出到rss分发,方便译者、读者阅读最新的原文、译文

crayon代码高亮兼容

目前仅能做到提取代码文本,隐去相关格式。并加入代码框

详细格式需要手动调节

选题工具后端功能设计

基于Koa2

  • 自动抓取Rss
  • 自动对Xml解析,提取title,content,author
  • 自动生成matrkdown
  • 定期抓取
  • 支持多个Rss源

可选功能

  • 自动commit(基于用户系统)

自动选题

做个rss订阅,然后自动抽取文章转成md,能获取作者名、链接地址、作者信息,然后每天跑一次,然后直接挑选文章

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.