如何在javascript中获取搜索项的缩进?
假设我有以下.rst文件:如何在javascript中获取搜索项的缩进?,javascript,restructuredtext,Javascript,Restructuredtext,假设我有以下.rst文件: .. raw:: html <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> <!-- prettier-ignore-start --> <!-- markdownlint-disable --> <table> <tr> <td align="
.. raw:: html
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href = "https://12rambau.github.io/web-resume/"><img src="https://avatars.githubusercontent.com/u/12596392?v=4" width="100px;" alt=""/><br /><sub><b>Rambaud Pierrick</b></sub></a></td>
</tr>
</table>
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->
.. 原始::html
这将在我的文档中显示一个表。我想用JS机器人自动填充它,但reST的问题是缩进很重要
为了达到开始写作的目的,我使用:
const tagToLookFor=`