html2md icon indicating copy to clipboard operation
html2md copied to clipboard

[新功能建议]html中的mermaid块转markdown

Open hhhllll888 opened this issue 1 year ago • 3 comments

Feature request(新功能建议)

例如 https://blog.csdn.net/wzj_whut/article/details/86231762 这个博客中的mermaid块,想转成原始博客并永久保存

hhhllll888 avatar Aug 21 '23 13:08 hhhllll888

这个博客中的mermaid块原始代码可能是这样

sequenceDiagram
    客户端->>服务器: Client Hello( Random)
    note left of 客户端:客户端将自己支持的cipher suit<br/>和一个随机值random传给服务器. <br/>这个值将用于生成密钥
    服务器->>客户端:Server Hello( Random )
    note right of 服务器:服务器将选定的cipher suit<br/>和一个随机值random 传给客户端, <br/>这个值将用于生成密钥
    服务器->>客户端:Certificate证书
    note right of 服务器:把证书传给客户端,<br/> 证书中包括RSA私钥和签名 
    服务器->>客户端:Server Key Exchange
    note right of 服务器:服务端的密钥交换参数, <br/>根据算法的不同, <br/>参数也不同. <br/>(也可能没有这一步)
    服务器->>客户端:Hello Done
    note right of 服务器:服务器的参数传完了. <br/>轮到客户端传了
    客户端->>服务器:Certificate证书 
    note left of 客户端:客户端将自己的证书传给服务器. <br/>(通常情况下没这一步. <br/>除非要双向认证),
    客户端->>服务器:Client Key Exchange 
    note left of 客户端:客户端将自己<br/>的密钥交换参<br/>数传给服务器.
    loop
    客户端->>客户端: 
    end
    note left of 客户端:计算密匙。
    loop
    服务器->>服务器: 
    end
    note right of 服务器:计算密匙。
    客户端->>服务器:(6) Change Cipher Spec
    note left of 客户端:这个消息表明之后<br/>客户端消息都是加<br/>密的(对称加密)
    客户端->>服务器:(7) Encrypted Handshake Message
    note left of 客户端:加密的Handshake<br/>Finished消息.<br/>服务端需要解密才能处理 
    服务器->>客户端:(8) Change Cipher Spec
    note right of 服务器:这个消息表示之<br/>后的服务器消息<br/>都是经过加密处<br/>理的(对称加密)
    服务器->>客户端:(9) Encrypted Handshake Message 
    note right of 服务器:加密的Finished消息.<br/>客户端需要解密,<br/>才能处理
    客户端->>服务器:(7) Encrypted Application Message
    note left of 客户端:加密的应用层数据,<br/>比如Http Request
    服务器->>客户端:(9) Encrypted Application Message
    note right of 服务器:加密的应用层数据,<br/>比如Http Response

hhhllll888 avatar Aug 21 '23 14:08 hhhllll888

Feature request(新功能建议)

例如 https://blog.csdn.net/wzj_whut/article/details/86231762 这个博客中的mermaid块,想转成原始博客并永久保存

这个功能有待调研哦

hsl947 avatar Sep 16 '23 14:09 hsl947

Feature request(新功能建议)

例如 https://blog.csdn.net/wzj_whut/article/details/86231762 这个博客中的mermaid块,想转成原始博客并永久保存

这个功能有待调研哦

都可以,我只是提出一个想法,随时都可以关闭这个issues

hhhllll888 avatar Nov 07 '23 00:11 hhhllll888