How to reprint a CSDN article How to reprint a CSDN article

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:

Excellent article

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:

  1. Right-click the article text area and click "Inspect" (some browsers select "Inspect Element")

Operation diagram:

Check element

  1. In the pop-up page, locate from top to bottom:
<div id="content_views">

 
 
  
  
  • 1
  • 1

Operation diagram:

Text part

  1. Right-click the mouse and select "copy outerHTML" to copy the text

Operation diagram:

Copy text

3. Markdown editing

  Open CSDN's Markdown editor and paste the copied content.
Operation diagram:

Text paste

  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:

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:

Delete results

  Fill in the title and reprint the article successfully!

</article>

Guess you like

Origin blog.csdn.net/r081r096/article/details/135449333