![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
solid-markdown
Advanced tools
Readme
solid-markdown
Render markdown as solid components.
The implementation is 90% shamelessly copied from https://github.com/remarkjs/react-markdown.
Changes include:
Please check the original repo for in-depth details on how to use.
npm install solid-markdown
import { SolidMarkdown } from "solid-markdown";
const markdown = `
# This is a title
- here's
- a
- list
`;
const App = () => {
return <SolidMarkdown children={markdown} />;
};
There's an extra option you can pass to the markdown component: renderingStrategy: "memo" | "reconcile"
.
The default value is "memo"
, which means that the markdown parser will generate a new full AST tree each time (inside a useMemo
), and use that.
As a consequence, the full DOM will be re-rendered, even the markdown nodes that haven't changed. (Should be fine 90% of the time).
Using reconcile
will switch the strategy to using a solid store with the reconcile
function (https://docs.solidjs.com/reference/store-utilities/reconcile). This will diff the previous and next markdown ASTs and only trigger re-renders for the parts that have changed.
This will help with cases like streaming partial content and updating the markdown gradually (see https://github.com/andi23rosca/solid-markdown/issues/32).
<SolidMarkdown renderingStrategy="reconcile" children={markdown} />;
FAQs
Markdown renderer for solid-js
The npm package solid-markdown receives a total of 718 weekly downloads. As such, solid-markdown popularity was classified as not popular.
We found that solid-markdown demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.