How to reprint a CSDN article
Table of contents
1. Determine the articles to be reprinted
First, determine the article to be reprinted.
Examples are as follows:
2. Positioning the text
The parts that need to be reprinted are the text of the article and the resources it contains. The following demonstrates how to locate and copy the body part of an article.
Specific steps:
- Right-click the article text area and click "Inspect" (some browsers select "Inspect Element")
Operation diagram:
- In the pop-up page, locate from top to bottom:
<div id="content_views">
- 1
- 1
Operation diagram:
- Right-click the mouse and select "copy outerHTML" to copy the text
Operation diagram:
3. Markdown editing
Open CSDN's Markdown editor and paste the copied content.
Operation diagram:
From the picture above, you can see that the copied content has a large blank space, which can be removed through label positioning.
Label positioning:
From the picture above, we can see that the " svg " tag and the first "p" tag are redundant and should be deleted.
Delete part:
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path>
</svg>
<p></p>
- 1
- 2
- 3
- 4
- 1
- 2
- 3
- 4
Delete results:
Fill in the title and reprint the article successfully!
</article>