Phantom_4217
05/24/2021, 8:03 AMhikchoi
05/24/2021, 10:12 AMcustom instead? looking at the code the only choices here are indeed custom and builtin. There is a chance that the documentation is incorrect 😅Phantom_4217
05/24/2021, 10:25 AMcustom gives Error: no note found at HelloPod.execute and builtin gives Error: no pod found at fetchPodClassV4hikchoi
05/24/2021, 10:31 AMcustom, try changing fname to a note that exists.
I just tested with a freshly initialized vault that has root.md in it, and I used :
sh
dendron-cli publishPod --wsRoot . --podId hello --podPkg hello-pod --podSource custom --config fname=root,vaultName=vault,dest=stdout
This seems to work. Can you try this? also, if it works, it will say Hello undefined at the top. You can pass in name=Phantom like so:
sh
dendron-cli publishPod --wsRoot . --podId hello --podPkg hello-pod --podSource custom --config fname=root,vaultName=vault,dest=stdout,name=PhantomPhantom_4217
05/24/2021, 10:33 AMhikchoi
05/24/2021, 10:35 AMKiran
05/24/2021, 10:41 AMKiran
05/24/2021, 10:42 AMhikchoi
05/24/2021, 10:54 AMno dest specified. config: {} ?Kiran
05/24/2021, 10:54 AMKiran
05/24/2021, 10:54 AMKiran
05/24/2021, 10:55 AMhikchoi
05/24/2021, 11:01 AMkevins8
05/24/2021, 4:13 PMSeriousBug
05/25/2021, 6:41 AMNoteProps object? I know it has the body property but I need the full note, including frontmatter.SeriousBug
05/25/2021, 7:15 AMkevins8
05/25/2021, 1:44 PMSeriousBug
05/26/2021, 6:15 AMdendron buildSiteV2 --serve or if I use the Publish Pod. It just gets converted to HTML as text, like it was never parsed. Is there anything I might be missing?kevins8
05/26/2021, 3:56 PMbuildSite now)henry
05/26/2021, 4:14 PMhenry
05/26/2021, 4:16 PMfeature-graph branch. Right now the display is just through the vscode/graph route, but implementation with VSCode will be happening throughout this weekSeriousBug
05/26/2021, 4:37 PM<p>^block-anchor</p>
<p>Lorem ipsum dolor amet ^other-block</p>SeriousBug
05/26/2021, 4:38 PMproc I was using to test, but they wouldn't parse correctly. I then looked at the example you had sent me which used procFull so I switched to that and it worked.kevins8
05/26/2021, 4:44 PMSeriousBug
05/26/2021, 5:11 PMkevins8
05/26/2021, 5:12 PMkevins8
05/26/2021, 5:13 PMkevins8
05/26/2021, 5:41 PMprocFull to render. When we publish, we actually pass the output of procFull to procRehype.
For testing the compilation of unified plugins, we've created this [harness](https://github.com/dendronhq/dendron/blob/master/packages/engine-test-utils/src/__tests__/engine-server/markdown/utils.ts#L40:L40) to bootstrap with the right processor
You can see an example of how it is used [here](https://github.com/dendronhq/dendron/blob/master/packages/engine-test-utils/src/__tests__/engine-server/markdown/wikiLink.spec.ts#L98:L98)SeriousBug
05/26/2021, 9:49 PMcreateProcForTest harness. I also tried splitting process to individual steps:
const parsed = proc2.parse(anchor);
const ran = await proc2.run(parsed);
const resp = proc2.stringify(ran);
parse parses the anchor correctly:
{type: "paragraph", children: [
{type: "blockAnchor",
value: "^my-block-anchor-0",
id: "my-block-anchor-0",
...
but run turns the anchor into a p :
{type: "element", tagName: "p", ...
children: [
{type: "text",
value: "^my-block-anchor-0",
...SeriousBug
05/26/2021, 9:49 PM