
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
flatmarkdown-ast2angular
Advanced tools
Render FlatMarkdown AST as native Angular components with routerLink support for wikilinks.
Render FlatMarkdown AST as native Angular components, with routerLink support for wikilinks.
npm install flatmarkdown-ast2angular flatmarkdown-ast
Peer dependencies: @angular/core, @angular/common, @angular/router (^21.0.0), flatmarkdown-ast (^0.1.0).
npm run publish:npm
Import FmRootComponent in your component:
import { Component } from '@angular/core';
import { FmRootComponent } from 'flatmarkdown-ast2angular';
import type { AstNode } from 'flatmarkdown-ast';
@Component({
selector: 'app-article',
standalone: true,
imports: [FmRootComponent],
template: `<fm-root [ast]="ast" [options]="options" />`,
})
export class ArticleComponent {
ast: AstNode = { type: 'document', children: [] };
options = {
wikilink: {
routerLinkPrefix: '/wiki/',
cssClass: 'wiki-link',
},
};
}
FmRootComponent accepts:
ast — An AstNode object or a JSON string of the AST.options — Optional AngularRenderOptions.interface AngularRenderOptions {
wikilink?: {
/** Prefix prepended to the wikilink url for routerLink. Default: '' */
routerLinkPrefix?: string;
/** CSS class applied to wikilink anchors. */
cssClass?: string;
};
}
Wikilinks are rendered as <a [routerLink]="route" data-wikilink="true"> enabling SPA navigation. All other links use standard <a href>.
MIT
FAQs
Render FlatMarkdown AST as native Angular components with routerLink support for wikilinks.
We found that flatmarkdown-ast2angular 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.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.