I add ID my-id
to this anchor tag, but it becomes user-content-my-id
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { saveAs } from "file-saver"; | |
function DownloadContent() { | |
const download = () => { | |
const blob = new Blob(["Hello, world!"], {type: "text/plain;charset=utf-8"}); | |
saveAs(blob, "hello, world.txt"); | |
} | |
return ( | |
<button onClick={download}>Download</button> | |
) |
Same article on dev.to
Here's my configuraiton (in data.json
):
"censorText": [
{
"entry": "/ (\\^\\w+)$/gm",
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* same article on [dev.to](https://dev.to/somidad/stop-obsidian-wrapping-code-and-enable-scrolling-47oo) */ | |
/* it only works on Reading view */ | |
/* https://forum.obsidian.md/t/horizontal-scrolling-in-the-code-block/55789/2 */ | |
.markdown-rendered code { | |
white-space: pre; | |
} |
How to:
- Visit https://lucide.dev/icons/
- Pick and click an icon you like
- Click 'Copy SVG' button
- Replace
<svg ...></svg>
with copied code - Adjust size (
width="24" height="24"
) - Adjust stroke color (
stroke="currentColor"
) - Adjust
margin-inline-start
. It determines indentation level of file entry - Adjust
margin-right
. It is space between icon and text
OlderNewer