MD Test
歡迎使用 MWeb
XXX
<details>
<summary>ZFCollectionViewListController.m</summary>
```js
<script src="https://blog-static.cnblogs.com/files/CoderWayne/hyt25.js"></script>
<script type="text/javascript">
window.onresize = function () {
console.log(window.innerWidth);
var isDetail = document.getElementById("post_detail");
if(isDetail) {
$(".forFlow").css('marginLeft',0);
if(window.innerWidth<760) {
$(".forFlow").css('marginTop',70);
}
else {
$(".forFlow").css('marginTop',0);
}
}
else {
if(window.innerWidth<760) {
$(".forFlow").css('marginLeft',0);
$(".forFlow").css('marginTop',70);
}
else {
$(".forFlow").css('marginLeft',255);
$(".forFlow").css('marginTop',0);
}
}
}
$(function(){
var isDetail = document.getElementById("post_detail");
if(isDetail) {
document.getElementById("sideBar").style.display = "none";
$(".forFlow").css('marginLeft',0);
if(window.innerWidth<760) {
$(".forFlow").css('marginTop',70);
}
else {
$(".forFlow").css('marginTop',0);
}
}
else {
document.getElementById("sideBar").style.display = "block";
if(window.innerWidth<760) {
$(".forFlow").css('marginLeft',0);
$(".forFlow").css('marginTop',70);
}
else {
$(".forFlow").css('marginLeft',255);
$(".forFlow").css('marginTop',0);
}
}
console.log(window.innerWidth);
$('#cnblogs_post_body p').each(function (index,element) {
var content = $(element).text()
if (/^```/.test(content)) {
$(element).remove();
return;
}
})
})
$.silence();
</script>
YYY
ZFCollectionViewListController.m
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didSendBodyData:(int64_t)bytesSent totalBytesSent:(int64_t)totalBytesSent totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend { UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]]; /*邏輯ab判斷*/UILabel *label = (UILabel *)[cell viewWithTag:104]; //新加入語句 dispatch_async(dispatch_get_main_queue(), ^{ if((float)totalBytesSent / totalBytesExpectedToSend == 1.0f) { label.text = @"上傳成功"; } else { label.text = [NSString stringWithFormat:@"上傳中:%.0f%%",100*(float)totalBytesSent / totalBytesExpectedToSend]; } });
}
下面是MD原生
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didSendBodyData:(int64_t)bytesSent totalBytesSent:(int64_t)totalBytesSent totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend {
UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]];
UILabel *label = (UILabel *)[cell viewWithTag:104];
dispatch_async(dispatch_get_main_queue(), ^{
if((float)totalBytesSent / totalBytesExpectedToSend == 1.0f) {
label.text = @"上傳成功";
}
else {
label.text = [NSString stringWithFormat:@"上傳中:%.0f%%",100*(float)totalBytesSent / totalBytesExpectedToSend];
}
});
}
MWeb 是專業(yè)的 Markdown 寫作、記筆記、靜態(tài)博客生成軟件,目前已支持 Mac,iPad 和 iPhone。MWeb 有以下特色:
軟件本身:
中間寫上想說的話
- 使用原生的 macOS 技術(shù)打造,追求與系統(tǒng)的完美結(jié)合。
- 原則上,首先是追求界面簡潔和高性能,然后才是強(qiáng)大易用,功能全面。
Markdown 語法:
- 使用 Github Flavored Markdown 語法,簡稱 GFM 語法。
- 支持表格、TOC、LaTeX、代碼塊、任務(wù)列表、腳注等。
- 畫圖庫支持 mermaid, viz, echarts, plantuml, sequence, flow。
Markdown 輔助:
- 支持截圖并粘貼、復(fù)制并粘貼、拖拽等方式插入圖片并直接顯示在編輯器內(nèi)。
- 在兼容 Markdown 語法的情況下支持設(shè)置圖片寬度。
- 好用的表格插入和 LaTeX 書寫輔助。
Markdown 輸出:
- 支持導(dǎo)出為圖片、HTML、Epub、PDF、RTF、Docx。
- 支持發(fā)布到 Wordrpess、支持 Metaweblog API 協(xié)議的服務(wù)、Wordpress.com、印象筆記(Evernote)、Blogger、Medium、Tumblr。
- 圖片上傳服務(wù)(圖床)支持 Google Photos、Imgur、七牛云、又拍云和自定義的圖床服務(wù)。
Markdown 筆記:
- 強(qiáng)大的文檔庫支持分類樹和標(biāo)簽管理文檔,文檔可歸類于多個分類,可以把分類整個導(dǎo)出為 Epub、PDF 和生成靜態(tài)網(wǎng)站。非常合適用于筆記、個人知識收集、管理和輸出。
- 快速筆記:隨意增加筆記及圖片等素材,支持以天為單位把增加的素材組合在一個文檔內(nèi),方便整理及記錄歷史收集情況。
- 快速搜索:目前已支持全局快捷鍵調(diào)出搜索。
外部 Markdown 文檔:
- 外部 Markdown 文檔使用外部模式管理。外部模式使用目錄樹的方式編輯和管理你的 markdown 文檔,還能很好的支持 gitbook、JekyII、hexo 等等編輯和圖片插入。
MWeb 文檔:
如果要更詳細(xì)了解 MWeb,建議你一定要去看一下官網(wǎng)的幫助文檔,網(wǎng)址為:https://zh.mweb.im/help.html。我們建議在使用文檔庫之前,一定要閱讀一下 MWeb 文檔庫詳細(xì)介紹 這篇文章,以便更好的使用文檔庫。
幫助我們改進(jìn) MWeb
如果你喜歡 MWeb,想讓它變得更好,你可以:
- 推薦 MWeb,讓更多的人知道。
- 給我們發(fā)反饋和建議:coderforart+2333@gmail.com
- 在 Mac App Store 上評價 (如果是在 MAS 上購買的話)。
<details>
<summary><mark><font color=darkred>點擊查看詳細(xì)內(nèi)容</font></mark></summary>
</details>
ABCD
CLICK ME
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didSendBodyData:(int64_t)bytesSent totalBytesSent:(int64_t)totalBytesSent totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend {
UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]];
UILabel *label = (UILabel *)[cell viewWithTag:104];
dispatch_async(dispatch_get_main_queue(), ^{
if((float)totalBytesSent / totalBytesExpectedToSend == 1.0f) {
label.text = @"上傳成功";
}
else {
label.text = [NSString stringWithFormat:@"上傳中:%.0f%%",100*(float)totalBytesSent / totalBytesExpectedToSend];
}
});
}
胡曉偉測試貼圖begin


浙公網(wǎng)安備 33010602011771號