css - Custom css file for readme.md in a Github repo
问题描述
I am having trouble verifying the name of the .css
file that will modifying the readme.md
file at the root of Github repo.
I believe it is:
.github/github.css
but that doesn't seem to do anything to the Markdown. Does anyone know if this is incorrect?
解决方案
GitHub 出于安全原因不允许 CSSREADME.md
通过 CSS 影响文件(就像您可以将 CSS 注入自述文件中一样,您可以轻松发起网络钓鱼攻击)。这包括通过引用的样式表<link rel>
和与<style>
.
自述文件采用 markdown 语法,因此可以进行一些样式设置,例如通过占位符图像添加颜色,就像 StackOverflow 上的这里一样。例如,您可以使用以下内容添加红色方块:
- ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) `#f03c15`
您还可以使用 、 、 和 之类的东西diff
来json
影响文本html
着色。js
css
推荐阅读
- intellij-idea - IntelliJ IDEA 编辑器替换功能不起作用,但替换可以
- html - 通过“单击”“按钮”将网页中的数据文件下载到所需的文件位置
- nginx - 将域名指向带有端口号的 IP 地址
- d3.js - 获取 neo4jd3.js 的数据格式
- angular - Angular 7 不加载 html 模板,但 url 正确解析
- swift - 在导航栏和标签栏顶部添加视图
- netsuite - NetSuite 为多种记录类型创建一个搜索
- xml - 如何在 TCC 输出中添加行号列?
- bash - 在具有匹配字符串的文件对(不同的文件类型)上运行命令
- node.js - UserPool.getCurrentUser() 返回 null [后端]