Giter Club home page Giter Club logo

Comments (5)

brennen avatar brennen commented on June 11, 2024

Additionally, noting explicitly that it feels a little weird that comments render as empty paragraphs:

Input:

== comments ==

%% this is a comment

%% another comment

Output:

<div id="comments"><h2 id="comments" class="header"><a href="#comments">comments</a></h2></div>
<p></p>
<p></p>

Or I guess maybe the blank lines between the comments render as empty paras?

== comments ==
%% this is a comment
%% another comment

Gives:

<div id="comments"><h2 id="comments" class="header"><a href="#comments">comments</a></h2></div>
<p> </p>

from vimwiki-rs.

chipsenkbeil avatar chipsenkbeil commented on June 11, 2024

I should revise html output of empty paragraphs to be nothing.

Separately, comments are supposed to be the first thing processed when it comes to inline content. I'll have to write up some tests based on your examples and figure out what's up.

Thanks for these!

from vimwiki-rs.

chipsenkbeil avatar chipsenkbeil commented on June 11, 2024

I think 35498bf solves the "key must be a string" error. Those should never be a true problem, by the way, as it just prevents caching from happening but not the actual conversion to html.

As for the comment becoming a definition list, I think I'll need to revise the parser a little bit. Definition list has higher priority than paragraph and the term (what comes before ::) allows pretty much any character including %%; so, I think it's eating the comment.

from vimwiki-rs.

chipsenkbeil avatar chipsenkbeil commented on June 11, 2024

@brennen give d339b69 a go to see if that fixes the issue.

from vimwiki-rs.

brennen avatar brennen commented on June 11, 2024

No more error message and the comments aren't rendered as definition lists, looks good!

from vimwiki-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.