argdown | a simple syntax for complex argumentation | Runtime Evironment library
kandi X-RAY | argdown Summary
kandi X-RAY | argdown Summary
This repository is a Monorepo containing all packages of the Argdown project. We use lerna to manage their internal dependencies. You can find all packages in the packages/ folder. For further information about the code, consult the API section of the documentation. To install this Monorepo.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of argdown
argdown Key Features
argdown Examples and Code Snippets
Community Discussions
Trending Discussions on argdown
QUESTION
I am developing the Argdown VSCode extension. The Argdown parser can be configured using either argdown.config.json
files or argdown.config.js
files exporting a config object. Using Javascript files is the easiest way to allow users to add custom plugins to the Argdown parser.
If the user tells the parser to use a Javascript file, the file is loaded using import-fresh, (which uses node's require, but deletes the cached version.
Using the Argdown commandline tool (@argdown/cli) this works fine, but in the VSCode extension the module of the config file can not be found. The extension is using absolute file paths to require the config module (e.g. "C:\Users\my-username\projects\my-argdown-project\argdown.config.js"). These paths work with import-fresh outside of the VScode extension.
Is there a security restriction for VSCode extensions that does not allow to require modules with absolute file paths? Or is there some other reason why this does not work?
...ANSWER
Answered 2021-Feb-24 at 16:41This was not related to VSCode. The problem was caused by bundling up import-fresh
with webpack. I thought that webpack would ignore dynamic imports, but it did not.
I was lucky: Since last month, webpack supports "magic comments" for require (not only for import). So I can use:
QUESTION
I'm creating a MediaWiki extension to enable support for Argdown (https://argdown.org/) on my wiki. The Argdown parser is written in NodeJS; what's the best way to have my extension's PHP file run a NodeJS program?
I see some examples on the web saying to do it with exec
, but my sysadmin says that's a bad idea - he says exec
creates security and performance problems. Is there a better way?
ANSWER
Answered 2021-Jan-22 at 00:40MediaWiki has a shell framework for just this purpose. After putting these at the top of my file...
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install argdown
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page