iuap-design / blog

📖 用友网络大前端技术团队博客

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

让你的md文档可折叠化展示

GuoYongfeng opened this issue · comments

让你的md文档可折叠化展示

怎么写

## 问答

<details>
  <summary>什么是iuap design</summary>
  iuap design 是用友网络FED团队开发的企业级应用前端集成解决方案。
</details>

<details>
  <summary>什么是tinper</summary>

`tinper`是开源前端技术平台。
</details>

预览效果

问答

什么是iuap design iuap design 是用友网络FED团队开发的企业级应用前端集成解决方案。
什么是tinper

tinper是开源前端技术平台。

编译后代码

// (function(modules) { // webpackBootstrap
/
/ // The module cache
/******/ var installedModules = {};

// // The require function
/
/ function webpack_require(moduleId) {

// // Check if module is in cache
/
/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;

// // Create a new module (and put it into the cache)
/
/ var module = installedModules[moduleId] = {
// exports: {},
/
/ id: moduleId,
// loaded: false
/
/ };

// // Execute the module function
/
/ modules[moduleId].call(module.exports, module, module.exports, webpack_require);

// // Flag the module as loaded
/
/ module.loaded = true;

// // Return the exports of the module
/
/ return module.exports;
/******/ }

// // expose the modules object (webpack_modules)
/
/ webpack_require.m = modules;

// // expose the module cache
/
/ webpack_require.c = installedModules;

// // webpack_public_path
/
/ webpack_require.p = "";

// // Load entry module and return exports
/
/ return webpack_require(0);
// })
/
*********************************************************/
/
/ ([
/
0 /
/
/ function(module, exports, webpack_require) {

"use strict";

console.log("Hallo Welt");
console.log("Missing Text");
console.log("internationnal");

// }
/
***/ ]);

终于发现宝藏了可以隐藏起来了。

真是厉害了,照这个逻辑是不是可以在里面写 style 标签,美化自己的 md 呢?

为什么我复制粘贴进编辑器没有用?是不是要安装说明插件的?

@RouderSky 这个是在md格式的才可以,推荐Typora这个专门的md文档编辑器

很棒

太棒了

问答

什么是iuap design

测试

2000

如何增大summary的字体?

commented

能否折叠表格?

比如我的入参是一个对象A, A中有个属性是对象B.
通常情况下, 会写两个表格, 并在A中通过锚点跳转到B.

能否坐到点击表格中A的属性B来弹出B的表格?

commented

正常md可显示,导出到pdf就用不了了

@GuoYongfeng 请问有试过折叠html代码块吗,我在typora下怎么都不成功

commented
标题 内容

换行还要自己打br的样子

换行还要自己打br的样子

正文与标题之间空一行就好了