Giter VIP home page Giter VIP logo

Comments (9)

abrookins avatar abrookins commented on June 3, 2024 1

FYI, I plan on tackling better Markdown support during October for Hacktoberfest.

from wraptocolumn.

abrookins avatar abrookins commented on June 3, 2024

Thank you, @tomzx. I will look into this issue as soon as I can.

from wraptocolumn.

abrookins avatar abrookins commented on June 3, 2024

Other interesting things about Markdown files: **Bold text** at the beginning of a line is interpreted as a comment, causing all lines afterward to gain a * prefix.

from wraptocolumn.

abrookins avatar abrookins commented on June 3, 2024

I started on this but ran out of time. It's my most desired feature, so I will resume after the holidays!

from wraptocolumn.

jflorian avatar jflorian commented on June 3, 2024

I would like to see this handled better too. I use reST for my docstrings in PyCharm and have things like:

:param foo:   Does foo things.  See also *bar*.
:param bar:   Very different than *foo*.

The problem is that when markup like *foo* or *bar* gets near the wrap point, Wrap (Line) To Column has a tendency to strip off one or more of those asterisks. Sadly, I often don't notice until after commit/release. If I have to do much docstring work, I just resort to VIM which largely defeats the whole purpose.

from wraptocolumn.

lsaffre avatar lsaffre commented on June 3, 2024

Another example are dashed lists, i.e. paragraphs that start with "- " or "# " (a dash or hash followed by one or several spaces). In reStructuredText (and I guess in markdown as well) all remaining lines should have the same indentation as the first character of the first line (counting the "-" or "#" like a space).

from wraptocolumn.

gene1wood avatar gene1wood commented on June 3, 2024

Ya, using this with Markdown is challenging as lists don't wrap correctly

* List item 1
* List item 2 that's very very very very long

Becomes

* List item 1
* List item 2 that's very 
* very very very long

from wraptocolumn.

abrookins avatar abrookins commented on June 3, 2024

The plugin needs some work on filetype-specific logic, which would help in a few of these areas. Some day I will add this. 😂

from wraptocolumn.

abrookins avatar abrookins commented on June 3, 2024

Should be fixed in 1.7.0, now published to the Plugins Marketplace.

We now ignore most comment-like symbols in Markdown and AsciiDoc files, except for list symbols. If we find a list symbol, we'll wrap the text around it like this:

- Imagine this is a long line and 
  the plugin has wrapped it.

from wraptocolumn.

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.